fork 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>c,a>b){max=a;
  8. printf("max=%d\n",max);}
  9. else if (b>a,b>c) {max=b;
  10. printf("max=%d\n",max);}
  11. else {max=c;
  12. printf("max=%d\n",max);}
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5316KB
stdin
7,5,6
stdout
max=7