#include <stdio.h>
double max(double ,double);
double cube(double);
//main関数
int main(void) {
double a, b;
a = -3.2;
b = 1.4;
printf("max(|%f|,(%f)^3)=%d\n",a
,b
,max
(abs(a
),cube
(b
))); return 0;
}
//二つの引数の大きい方の値を返す関数
double max(double x, double y){
return (x>y)?x:y;
}
//引数の絶対値を返す関数
return (x>0)?x:-x;
}
//引数の三乗の値を返す関数
double cube(double x){
return x*x*x;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmRvdWJsZSBtYXgoZG91YmxlICxkb3VibGUpOwpkb3VibGUgYWJzKGRvdWJsZSApOwpkb3VibGUgY3ViZShkb3VibGUpOwoKLy9tYWlu6Zai5pWwCmludCBtYWluKHZvaWQpIHsKICAgIGRvdWJsZSBhLCBiOwogICAgYSA9IC0zLjI7CiAgICBiID0gMS40OwogICAgcHJpbnRmKCJtYXgofCVmfCwoJWYpXjMpPSVkXG4iLGEsYixtYXgoYWJzKGEpLGN1YmUoYikpKTsJCglyZXR1cm4gMDsKfQoKLy/kuozjgaTjga7lvJXmlbDjga7lpKfjgY3jgYTmlrnjga7lgKTjgpLov5TjgZnplqLmlbAKZG91YmxlIG1heChkb3VibGUgeCwgZG91YmxlIHkpewogICAgcmV0dXJuICh4PnkpP3g6eTsKfQoKLy/lvJXmlbDjga7ntbblr77lgKTjgpLov5TjgZnplqLmlbAKZG91YmxlIGFicyhkb3VibGUgeCl7CiAgICByZXR1cm4gKHg+MCk/eDoteDsKfQoKLy/lvJXmlbDjga7kuInkuZfjga7lgKTjgpLov5TjgZnplqLmlbAKZG91YmxlIGN1YmUoZG91YmxlIHgpewogICAgcmV0dXJuIHgqeCp4Owp9Cgo=