#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 l, n = -2, m = 3;
l =sum(func(n),func(m));
printf("%dの絶対値と%dの絶対値和は%d\n", m
,n
,l
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Ci8v57e057+S5ZWP6aGMQwppbnQgc3VtKGludCBtLCBpbnQgbil7CiAgICByZXR1cm4gbStuOwp9CmludCBmdW5jKGludCBuKXsKICAgIGlmIChuIDwgMCl7CiAgICAgICAgbiA9IC1uOwogICAgfQogICAgcmV0dXJuIG47Cn0KCmludCBtYWluKHZvaWQpIHsKCWludCBsLCBuID0gLTIsIG0gPSAzOwogICAgbCA9c3VtKGZ1bmMobiksZnVuYyhtKSk7CiAgICBwcmludGYoIiVk44Gu57W25a++5YCk44GoJWTjga7ntbblr77lgKTlkozjga8lZFxuIiwgbSxuLGwpOwoJcmV0dXJuIDA7Cn0K