#include <stdio.h>
//フィボナッチ数列(再帰なし版)
int main(void) {
int n = 10;
//ここを埋める
int a, b = 1, c = 1;
for(int i = 3; i <= n; i++){
//ここも埋める
a = b + c;
c = b;
b = a;
}
printf("フィボナッチ数列の第%d項は%d\n", n
, a
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Ci8v44OV44Kj44Oc44OK44OD44OB5pWw5YiXKOWGjeW4sOOBquOBl+eJiCkKaW50IG1haW4odm9pZCkgewogICAgaW50IG4gPSAxMDsKLy/jgZPjgZPjgpLln4vjgoHjgosKCWludCBhLCBiID0gMSwgYyA9IDE7CiAgICBmb3IoaW50IGkgPSAzOyBpIDw9IG47IGkrKyl7Ci8v44GT44GT44KC5Z+L44KB44KLCgkgYSA9IGIgKyBjOwoJIGMgPSBiOwoJIGIgPSBhOwogICAgfQogICAgcHJpbnRmKCLjg5XjgqPjg5zjg4rjg4Pjg4HmlbDliJfjga7nrKwlZOmgheOBryVkXG4iLCBuLCBhKTsKCXJldHVybiAwOwp9Cgo=