Advertisement
Josif_tepe

Untitled

Apr 23rd, 2021
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int maximum(int a, int b) {
  6.     if(a > b) {
  7.         return a;
  8.     }
  9.     else {
  10.         return b;
  11.     }
  12. }
  13. int main() {
  14.     int n, m;
  15.     cin >> n >> m;
  16.     cout << maximum(n, m) << endl;
  17.    return 0;
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement