fork download
  1. #include <stdio.h>
  2.  
  3. int max(int m,int n);
  4.  
  5. int main(void){
  6. int a,b,c,d,e;
  7. scanf("%d %d %d %d",&a,&b,&c,&d);
  8. e=max(max(a,b),max(c,d));
  9. printf("%d",e);
  10.  
  11. return 0;
  12. }
  13. int max(int m,int n){
  14. return (m>n)?m:n;
  15. }
  16.  
Success #stdin #stdout 0.01s 5284KB
stdin
22  66 3 100
stdout
100