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