Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int MAX(int a, int b, int c);
- int main(){
- cout << MAX(1,2,3) << endl;
- cout << MAX(4,2,3) << endl;
- cout << MAX(1,2,3) << endl;
- cout << MAX(1,190,6) << endl;
- }
- int MAX(int a, int b, int c){
- return max(a, max(b,c));
- }
Advertisement
Add Comment
Please, Sign In to add comment