#include
#include
void main(){
clrscr();
int x;
cout << "Enter an integer : " << endl;
cin>>x;
if(x==100)
{
cout << "The no. you entered is 100 itself." << endl;
}
else if(x>100)
{
cout << x << " is greater than 100." << endl;
}
else
{
cout << x << " is less than 100." << endl;
}
getch();
}
Sunday, September 5, 2010
Program to enter an integer and print if it is greater or less than 100
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment