//有一分数序列 2/1,3/2,5/3,8/5,13/8,21/13,求出这个数列的前20项和
问题描述:
//有一分数序列 2/1,3/2,5/3,8/5,13/8,21/13,求出这个数列的前20项和
#include
using namespace std;
void main(){
float a1=2,a2=3,b1=1,b2=2;
int i;
double s;
for(i=1;i
答
#include <iostream>using namespace std; int main(){ int a1=2,a2=3,b1=1,b2=2; int n,an,bn; &nbs...