程序填空完成功能:求分数序列 2/1,3/2,5/3,8/5,13/8 …… 的前 20 项之和。 #include using namespace std; int main() { double i,n=1,m=1,t,s=0 ; for (i=1;i<=20;i++) { t = n ; n = m ; 【 】 ; s = s + m/n ; } cout<

时间:2022-11-16 03:27:49

相似题目