Describe 피보나치/김영록 here.
~cpp 변수 a,b,c를 이용해서 a,b가 주 숫자고 c는 임시 변수 입니다
~cpp
#include <stdio.h>
static int number_output;
int pi(int round)
{
static int a=1,b=1,c=0,round_temp;
c= a+b;
a=b;
b=c;
round_temp=round;
round_temp--;
if(round_temp !=0)
pi(round_temp);
else number_output = b;
//return b;
return 0;
}
int main()
{
int number_input;
printf("이보삼 알고싶은번째 피보나치수좀 알아보셈 : ");
scanf("%d",&number_input);
pi(number_input);
printf("%d",number_output);
return 0;
}










