> 其他 >
编写程序,计算并输出下面数列中前n(设n=20)项的和.
1*2,2*3,3*4,4*5,……,n*(n+1),……
本题要求填写程序的最后运行结果,请将运行结果粘贴到下面的框中
题要求填写源程序,请将你解答本题所写的源程序粘贴到下面
人气:259 ℃ 时间:2020-06-20 13:03:18
解答
#include "stdafx.h"
void main(){
int s=0;
for(int n=1;n
推荐
猜你喜欢
© 2025 79432.Com All Rights Reserved.
电脑版|手机版