问答题
根据Fibonacci数列公式: 计算并输出前20项之和。
【参考答案】
#include<stdio.h> main() {int i;float f[22]={1,1},sum=0; ......
(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
输入2个整数,输出它们的最小公倍数和最大公约数。 #include<stdio.h> void main() {int m,n,gbs,gys; scanf( %d,9 6d ,m,n); gbs=m; while(______) *第一空* gbs=______; *第二空* gys=______; *第三空* printf( %d %d n ,gbs,gys); }
点击查看答案&解析
问答题
#include<stdio.h> #include%<string.h> main() {char p1[10]= abc ,p2[10]= ABC ,str[50]= xyz : strcpy(str+2,strcat(p1,p2)): printf( %s n ,str); }
点击查看答案
相关试题
下面程序由终端键盘输入一个文件名。然后把...
有以下程序( ) #include<stdio.h>...
设有定义 chara=2,b=5; 求表达式 ...
有以下程序段( ) int n,t=1,s=0...
有以下程序( ) main() {int i,s...