I simply added the getchar command at the bottom. The program now holds. Thanks for your help in solving this id10t error.
Final code:
Code:
/* first.cpp
* This is my first C Program!
* This program will display the statement "This is
* my first C program" on the output screen
*/
#include <stdio.h>
main ()
{
printf ("This is\n");
printf ("my first C program\n");
getchar();
/* The getchar command is here to force the output window to remain open to view the results.
I figured out that that is what the command does, when I looked at the prnt20 program on the
programming sheet
*/
}
/* Computer...end program */