U E D R , A S I H C RSS

피보나치/유선

~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;
}



}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-05-27 07:09:19
Processing time 0.0900 sec