c programmcode for excercise 1.3