#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/jgZPjgZPjgpLln4vjgoHjgosKICAgIGludCBhLGI9MSxjPTE7CiAgICBmb3IoaW50IGkgPSAzOyBpIDw9IG47IGkrKyl7Ci8v44GT44GT44KC5Z+L44KB44KLCiAgICBhPWIrYzsKICAgIGM9YjsKICAgIGI9YTsKICAgIH0KICAgIHByaW50Zigi44OV44Kj44Oc44OK44OD44OB5pWw5YiX44Gu56ysJWTpoIXjga8lZFxuIiwgbiwgYSk7CglyZXR1cm4gMDsKfQoK