ValerianBenchea

Maximul dintre doua numere

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