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