题解 1131: C语言训练-斐波纳契数列

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

C语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f(int n){    if(n==1||n==2)    {        return 1;    }    else  ……

C语言训练-斐波纳契数列

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10000000];int main(){    int n;    ……

斐波纳契数列

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[100];int main(){    int x;    cin>>……

感谢支持,谢谢你们的支持

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[100];int main(){    int x;    cin>>……

1131(简单c++)

摘要:解题思路:此题无须使用数组;我们首先定义变量:int k,sum; int f1 = 1, f2 = 1;分三种情情况论if (k == 2) {   //1  } if (k == 1) ……

简单易懂C语言

摘要:#include<stdio.h> int main() { int a = 1, b = 1; int n; scanf("%d", &n); if(n==1){ ……

斐波纳契数列(C语言)

摘要:#include<stdio.h> int main() { int fib[40] = { 1,1 }; int N; scanf("%d", &N); for (int i =……