Classwork 4
Logistics
- Due: Thursday, May 13th no later than 1:35pm.
- Submission instructions: push a commit with the tag
classwork4
to your git repository. - Deadline reminder: after the deadline passes, you cannot earn any points for this assignment. If the deadline is approaching, submit what you have in order to earn partial credit.
Learning outcomes
- Use a loop to reuse code.
Assignment
This comes from problem 1, chapter 5 on page 272.
Write a program that causes the following output to be displayed.
0
0 1
0 1 2
0 1 2 3
0 1 2 3 4
0 1 2 3 4 5
0 1 2 3 4
0 1 2 3
0 1 2
0 1
0
Requirements
- Write your program in the
classwork
directory, inside another directory calledclasswork4
, in a file calledloops.c
. - Compile your program into an executable called
loops
and run it using./loops
.
Grading - 10 points
- 1 point - there is a file called
loops.c
in yourclasswork/classwork4
directory. - 9 points - it can be compiled and runs.
Note: you will not earn any points if your work is not committed and pushed to Github with the tag classwork4
.
Grading turnaround
This classwork will be graded with scores in Brightspace by 5pm the day it is due (May 13th).