~cpp
#include<stdio.h>
void main(){
  
int count;
int a,b,c;

printf("숫자를 몇개 출력할까요? 3이상으로 선택해 주세요");
	   scanf("%d",&count);
int i;
a=1;
b=1;

printf("11");

for(i=0;i<count-2;i++)
{c=a+b;
printf("%d",c);

a=b;
b=c;
}



}
Retrieved from http://wiki.zeropage.org/wiki.php/피보나치/유선
last modified 2021-02-07 05:31:28