Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int max2(int a, int b)
- {
- if (a>=b)
- return a;
- else
- return b;
- }
- int max3(int a,int b, int c)
- {
- max2(a,b);
- if (max2(a,b)>=c)
- return max2(a,b);
- else
- return c;
- }
- int max6(int a, int b, int c,int d,int e,int f)
- {
- max2(max3(a,b,c),max3(c,d,e));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement