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