📄 2.txt
字号:
const a=1,b=2;
int x,y;
void main()
{
int i,j;
scanf(x);
if(x <= 0)
{
printf("Fibonacci of ",x);
printf("is not exist");
}
else if ( x == a )
{
printf("Fibonacci of ",x);
printf("is 1");
}
else if(x== b)
{
printf("Fibonacci of ",x);
printf("is 1 2");
}
else
{
i=a;
j=b;
printf("Fibonacci of ",x);
printf("is 1 2");
while(x>2)
{
y=i+j;
i=j;
j=y;
printf(" ",y);
x=x-1;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -