纠正:C语言编程:有一分数序列:2/1,3/2,5/3,8/5,13/8,21/13...求出这个数列的前n项之和.
写完后运行输入2结果为3,不正确,调试找不出原因.
#include
int main(){
int a,b,c,n,i;
double s;
scanf("%d",&n);
a=2,b=1,s=0;
for (i=1;i
人气:329 ℃ 时间:2019-11-21 17:29:06
解答
#include
int main(){
int a,b,c,n,i;
double s;
scanf("%d",&n);
a=2,b=1,s=0;
for (i=1;i
推荐
- C语言编程:有一分数序列:2/1,3/2,5/3,8/5,13/8,21/13...求出这个数列的前20项之和.
- MATLAB语言编程:有一分数序列:2/1,3/2,5/3,8/5,13/8,21/13...求出这个数列的前15项之和
- 用C语言编程输出数列1,1,2,3,5,8,13,21的前20 项
- 不等式.(一)已知不等式组①3x-m
- When will she have time to meet the client tomorrow?Her secretary told me that she__free after 3
- A man from the South _ feel that Beijing is very dry.A will B shall C would D may 选什么?
- (sin3/5π)/(1-cos3/5π)=tan3/5π?为什么
- 用绳子测量井深把绳子三折来量井外余四米把绳子四折来量井外余一米求井深和绳长
猜你喜欢