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