C programming exercises