Added roblem 9 in C