2nd Programming homework in C

so easy.