fork download
  1. #include <stdio.h>
  2.  
  3. //main関数
  4. int main(void) {
  5. double a, b;
  6. a = -3.2;
  7. b = 8.4;
  8. double c, d;
  9. c = (a>0)? a:-a;
  10. d = b*b*b;
  11. double e;
  12. e = (c>d)? c:d;
  13. printf("max(|%f|,(%f)^3)=%f\n",a,b,e);
  14. return 0;
  15. }
  16.  
  17.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
max(|-3.200000|,(8.400000)^3)=592.704000