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