fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a,b,c;
  5. int x,y,z;
  6. int max;
  7. scanf("%d %d %d",&a,&b,&c);
  8. x=a*a;
  9. y=b*b;
  10. z=c*c;
  11. max=a;
  12. if(x<y){
  13. max=b;
  14. }
  15. if(z>max*max){
  16. max=c;
  17. }
  18. printf("%d",max);
  19.  
  20. return 0;
  21. }
  22.  
Success #stdin #stdout 0.01s 5284KB
stdin
1 2 3
stdout
3