Home Schedule

Nested Loops Exercises

When you clone this assignment you will see four C files in which you are to write programs. Each file contains a comment with instructions. Write your code below the comment in each file.

Start with square.c, as it will be the easiest. Here are the four files sorted by increasing difficulty:

Submission

Make sure that your output matches the example output in the comments exactly or the tests will fail

When you are confident your programs work submit your work by saving your code and then using git to add the C files, commit, and pushing your changes. You can add all the files on one line if you want, like this:


      $ git add square.c triangle.c pyramid.c checkerboard.c
  

You can also add them one at a time (with four individual git add commands).

Once you have pushed, git-keeper will send you an email concerning the results of compiling and testing your code. If any of your programs do not pass the tests, you may make changes and submit again. To submit again, simply add the file(s) that you changed, commit, and push again.

For full credit all the tests must pass

Your grade for this exercise will be out out of 5 points: