Hi!
I'm using this code for a program I got from the tutorials here:
#include <iostream.h>
int main() //Most important part of the program!
{
int age; //Need a variable...
cout<<"Please input your age: "; //Asks for age
cin>>age; //The input is put in age
if(age<40) //If the age is less than 100
{
cout<<"You are pretty young dude!"; //Just to show it works
}
else if(age==40) //I use else just to show an example
{
cout<<"You are old"; //Just to show you it works...
}
else
{
cout<<"You are really old"; //Executed if no other statement is executed
}
return 0;
}
What would I add to make it pause the program?
Thanks!!
Jordan