When I finish my program right after the funtion is excuted it always seems to end instantly.
Can anyone help.
When I finish my program right after the funtion is excuted it always seems to end instantly.
Can anyone help.
not if you dont post any code!
here
//Practice Program//
#include <iostream.h>
int main()
{
int x; //number entered is x//
cout<<"Please type a number greater than 5 but less than 10: ";
cin>>x; //include x//
if(x>5||x<10) //if statment//
{
cout<<"This is a number between 5 and 10: "; //if number entered 5-10//
}
else if(x<5||x>10)
{
cout<<"This number is not between 5 and 10: "; //if not entered 5-10//
}
return 0;
}
Could you show me? I really dont get where to put it i keep gettin errors
simpleCode:getchar(); // press enter to continue return 0;
All spelling mistakes, syntatical errors and stupid comments are intentional.