Two programs written in C for school