C++ if statement check int value range
#include <iostream> using namespace std; int main()/*w w w . ja v a2 s . com*/ { int x; cout << "Enter a number: "; cin >> x; if( x > 100 ) cout << "That number is greater than 100\n"; return 0; }