fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a,b,c,max;
  6. scanf("%d,%d,%d",&a,&b,&c);
  7. if(a>=b&&a>=c)max=a;
  8. if(b>=a&&b>=c)max=b;
  9. if(c>=b&&c>=a)max=c;
  10. printf("%d\n",max);
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5316KB
stdin
5,4,3
stdout
5