Update main.c

-Moved getchar() above the scanf line