#include <stdio.h>
int calc(int n){
if(n<0){
n=-n;
int a=1;
for(int i=n;i>0;i--){
a=a*i;
}return a;
}
}
int main(void) {
int n;
n=-5;
printf("%dの絶対値の階乗は%d",n
,calc
(n
)); // your code goes here
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBjYWxjKGludCBuKXsKCWlmKG48MCl7CgkJbj0tbjsKCQlpbnQgYT0xOwoJCWZvcihpbnQgaT1uO2k+MDtpLS0pewoJCQlhPWEqaTsKCQl9cmV0dXJuIGE7Cgl9Cn0KCmludCBtYWluKHZvaWQpIHsKCWludCBuOwoJbj0tNTsKICAgIHByaW50ZigiJWTjga7ntbblr77lgKTjga7pmo7kuZfjga8lZCIsbixjYWxjKG4pKTsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCXJldHVybiAwOwp9Cg==