i used if statements and i would like to know is there any other way to create a program that finds value greater than 100.
#include <iostream>
using namespace std;
int main()
{
int x;
cout<<"Enter an integer: "<<endl;
cin>> x;
if (x>100)
{
cout << x << " is greater than 100." << endl;
}
else
{
cout << x << " is less than 100." << endl;
}
return 0;
}