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