C++ examples for Statement:if
Demonstrate IF with multiline body
#include <iostream> using namespace std; int main()/*from w ww .j a v a 2 s . c om*/ { int x; cout << "Enter a number: "; cin >> x; if( x > 100 ) { cout << "The number " << x; cout << " is greater than 100\n"; } return 0; }