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