ValerianBenchea

Nr. mai mare dintre 2 numere

Oct 16th, 2019
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.    int a, b ,max;
  8.    cout<<"a=";
  9.    cin>>a;
  10.    cout<<"b=";
  11.    cin>>b;
  12.    if(a>b)
  13.    cout<<"a>b";
  14.    else
  15.    cout<<"b>a";
  16.  
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment