Simple Exercises for a C Programming Language Course

This post has moved to eklausmeier.goip.de/blog/2014/05-10-simple-exercises-for-a-c-programming-language-course.

I sometimes teach a C programming language course. I use the following simple exercises for the students to solve on their own. Most solutions are no longer than 10-20 lines of C code.

  1. Exercising simple loop and printf(): Print a table of square root values for arguments 1 to 30.
  2. Exercising printf(), scanf(), arrays, if-statement, flag-handling: Read a list of numbers into an array, and then sort the array with Bubblesort.
  3. Continue reading