Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Zadanie 13

WiktoriaRatajczyk Mar 31st, 2020 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int MAX (int a, int b, int c) {
  6. if (a>b && a>c) {return a;}
  7. else if (b>a && b>c) {return b;}
  8. else {return c;}
  9. }
  10.  
  11. int main()
  12. {
  13.     cout<<MAX(2,5,1)<<endl;
  14.     cout<<MAX(13,12,15)<<endl;
  15.     cout<<MAX(14,12,11)<<endl;
  16.     return 0;
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top