#include<iostream>
      using namespace std;
      int main ()
      {
          int first, second, third;
          cout << "Enter the three numbers:"; cin >> first >> second >> third;
          //comparing first with other numbers
          if ((first >= second) && (first >= third))
              cout << first << " is the greatest "; 
          //comparing Second with other numbers 
          else if ((second >= first) && (second >= third))
              cout << second << " is the greatest";
          else
              cout << third << " is the greatest";
          return 0;
      }
      
      Cpp language logo

      leap yaer

      0

      0

      avatar
      Ayush Gupta

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.