1. الرئيسية
  2. /
  3. المدوّنة
  4. /
  5. c++ Program to find the largest number of Two Numbers using If
سي بلس بلس

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

September 27, 2022 1 دقيقة قراءة 3,508
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;

}
شارك المقال:
اقرأ أيضاً

مقالات ذات صلة