#include <stdio.h>
//フィボナッチ数列
int rec(int n){
if(n==1){
return 1;
}
else if (n==2){
return 2;
}
else {
return rec(n-1)+rec(n-2);
}
}
int main(void) {
int n = 10;
printf("フィボナッチ数列の第%d項は%d\n", n
, rec
(n
)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Ci8v44OV44Kj44Oc44OK44OD44OB5pWw5YiXCmludCByZWMoaW50IG4pewogaWYobj09MSl7CnJldHVybiAxOwp9CmVsc2UgaWYgKG49PTIpewpyZXR1cm4gMjsKfQplbHNlIHsKcmV0dXJuIHJlYyhuLTEpK3JlYyhuLTIpOwp9Cn0KCmludCBtYWluKHZvaWQpIHsKICAgIGludCBuID0gMTA7CiAgICAgICAgcHJpbnRmKCLjg5XjgqPjg5zjg4rjg4Pjg4HmlbDliJfjga7nrKwlZOmgheOBryVkXG4iLCBuLCByZWMobikpOwoJcmV0dXJuIDA7Cn0KCg==