c++ Program to find the largest number of Two Numbers using If

c++ Program to find the largest number of Two Numbers using If


    
#include <iostream>
using namespace std;
int main()
{
     int  a, b, max;

     cout << " Enter Two Numbers ::: ";
     cin >> a >> b;

     if( a > b )
     {
          max = a;
     }
     else
     {
          max = b;
     }

     cout << "
 Maximum = " << max;

}