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