JakubKaczmarek_123

zadanie 8

Jan 29th, 2021
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4. int MAX(int a, int b, int c);
  5. int main(){
  6. cout << MAX(1,2,3) << endl;
  7. cout << MAX(4,2,3) << endl;
  8. cout << MAX(1,2,3) << endl;
  9. cout << MAX(1,190,6) << endl;
  10. }
  11.  
  12. int MAX(int a, int b, int c){
  13. return max(a, max(b,c));
  14. }
Advertisement
Add Comment
Please, Sign In to add comment