Classwork 2 - UMBC-CMSC104/General GitHub Wiki
In this classwork, we're going to write a C program that prints out the following:
One
Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten
I also want you to make sure each line is a separate call to printf.
First, you'll want to either create or change into your classwork 2 directory (cw02).
Starting editing your code by typing in
nano count_up.c
After editing your code, to test it out, type
gcc count_up.c -o count_up
./count_up
If it works, that's great! Submit it by typing
submit cs104_wilson cw02 count_up.c
Notes
- Base your code off of https://github.com/UMBC-CMSC104/General/blob/master/cw02/hello.c or https://github.com/UMBC-CMSC104/General/blob/master/cw02/hello_nocomments.c.
- Comment your code!
- DON'T forget to return 0 at the end of your program
- If it's the end of class and you still haven't figured it out, submit it anyway. Better something than nothing!
- Ask me for help! Ask your neighbor! Remember the academic integrity policy, however!