SyntaxFix
Write A Post
Hire A Developer
Questions
you can put
getchar();
before the return from the main function. That will wait for a character input before exiting the program.
Alternatively you could run your program from a command line and the output would be visible.