Programs from learning C