I am learning C and I\'m using \"getchar()\" to stop the command windows so I can see the exercises am doing but it just doesn\'t work. heres a sample:
I think you input a enter after inputting "1". It will be accepted by the getchar().So you can solve the problem simply by add an additional getchar() after the original one(just before the return 0;).