3.Code written in half, main.c