C code for ExerciseA added