Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. int max2(int a, int b)
  2. {
  3. if (a>=b)
  4. return a;
  5. else
  6. return b;
  7. }
  8. int max3(int a,int b, int c)
  9. {
  10. max2(a,b);
  11. if (max2(a,b)>=c)
  12. return max2(a,b);
  13. else
  14. return c;
  15. }
  16. int max6(int a, int b, int c,int d,int e,int f)
  17. {
  18. max2(max3(a,b,c),max3(c,d,e));
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement