c coding exercise