I am just learning c, and i was wondering how to stop my program from ending. The getchar () works fine with just the printf command, put what works with the scanf command?