Advertisement
KingaGolas

zad13

Mar 29th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void MAX (int a, int b, int c)
  6. {
  7. if (a>b && a>c)
  8. {
  9. cout<<a;
  10. }
  11. else if (b>a && b>c)
  12. {
  13. cout<<b;
  14. }
  15. else
  16. {
  17. cout<<c;
  18. }
  19. }
  20. int main()
  21. {
  22. MAX (123,474,92);
  23. cout<<endl;
  24. MAX (72,8191,26);
  25. cout<<endl;
  26. MAX (167,0,198);
  27. return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement