Answer01.c for assignment 1