SyntaxFix
Write A Post
Hire A Developer
Questions
The program immediately closes because there's nothing stopping it from closing. Insert a breakpoint at return 0; or add Console.Read(); before return 0; to prevent the program from closing.
return 0;
Console.Read();