C Programming Exercises, Practice, Solution