Algorithm Description

From BenningtonWiki
Jump to: navigation, search

Counting by 2s to 100

Start with zero.
Repeat the next two steps until the number is 100.
	Add two to the number.
	Print the number.

How Many Days in a Given Month

In the case that the month number is 4, 9, 6 or 11
	Print "There are 30 days in the month"

In the case that the month number is 1, 3, 5, 7, 8, 10 or 12
	Print "There are 31 days in the month"

In the case that the month number is 2
	Print "February is a sucka... it only has 28 days"