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