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