C language program with user input