C++ if statement with multiline body

Description

C++ if statement with multiline body

#include <iostream>
using namespace std;
int main()//from  ww w  .j  a  va2s.c  o m
{
   int x;
   cout << "Enter a number: ";
   cin >> x;
   if( x > 100 )
   {
      cout << "The number " << x;
      cout << " is greater than 100\n";
   }
   return 0;
}



PreviousNext

Related