#include<bits/stdc++.h>
      using namespace std;
      int main ()
      {
          int num1, num2, largest;
          cout << "Insert two numbers: " << endl; 
          cin >> num1 >> num2;
          if(num1 == num2)
              cout << "Both are Equal\n";
          else
          {
              largest = num1 > num2? num1 : num2;
              cout << largest << " is largest";
          }
        return 0;
      }
      
      Cpp language logo

      ternary

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.