if u cannot see the output jus add a line in the end of the program
Code:
getch();
If it returns any error include the conio.h header at the beginning