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