Classwork 6 - UMBC-CMSC104/General GitHub Wiki
Today's classwork assignment will gain you practice with loops. Name your source file count_odd.c.
The goal of today's program is to count every odd number until a user specified limit.
Welcome to classwork 6!
How high should we count odd numbers up to?
For example, if the user specifies 11:
Welcome to classwork 6!
How high should we count odd numbers up to? 11
1
3
5
7
9
11
If the user specifies an even number, like 10:
Welcome to classwork 6!
How high should we count odd numbers up to? 10
1
3
5
7
9
If the user specifies 0 or a negative number, please print out an error message.
To submit the program, type:
submit cs104_wilson cw06 count_odd.c