fork download
  1. #include <stdio.h>
  2. int max(int x,int y);
  3.  
  4. int main(void) {
  5. int a,b,c,d;
  6. a=1;
  7. b=5;
  8. c=3;
  9. d=3;
  10. printf("%d\n",max(max(a,b),max(c,d)));
  11. return 0;
  12. }
  13.  
  14. int max(int x, int y){
  15. if(x>y)
  16. return x;
  17. else
  18. return y;
  19. }
  20.  
  21.  
  22.  
Success #stdin #stdout 0.01s 5320KB
stdin
1
3
4
2
stdout
5