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