#include <stdio.h>
//練習問題C
int func(int n){
if (n < 0){
n = -n;
}
return n;
}
int main(void) {
int l, n = -2, m = 3;
l =func(n)+func(m);
printf("%dの絶対値と%dの絶対値和は%d\n", m
,n
,l
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Ci8v57e057+S5ZWP6aGMQwppbnQgZnVuYyhpbnQgbil7CiAgICBpZiAobiA8IDApewogICAgICAgIG4gPSAtbjsKICAgIH0KICAgIHJldHVybiBuOwp9CgppbnQgbWFpbih2b2lkKSB7CglpbnQgbCwgbiA9IC0yLCBtID0gMzsKICAgIGwgPWZ1bmMobikrZnVuYyhtKTsKICAgIHByaW50ZigiJWTjga7ntbblr77lgKTjgaglZOOBrue1tuWvvuWApOWSjOOBryVkXG4iLCBtLG4sbCk7CglyZXR1cm4gMDsKfQo=