Program to enter an integer and print if it is greater or less than 100.

Program to enter an integer and print if it is greater or less than 100.
   #include <iostream>
using namespace std;
int main(){
       int a;
       cout << "Enter Number" << endl;
       cin >> a;
       if (a <= 100){
              cout << "Number is less then 100" << endl;
       }
       else{
              cout << "Number is greater then 100" << endl;
       }

       system("pause");
       return 0;

}

Comments