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