c语言编程sum problemProblem DescriptionHey,welcome to

发布时间:2021-03-15 08:02:57

c语言编程sum problemProblem DescriptionHey,wele to HDOJ(Hangzhou Dianzi University Online Judge).In this problem,your task is to calculate SUM(n) = 1 + 2 + 3 + ...+ n.InputThe input will consist of a s

网友回答

#include
void main()
{int i,j,n,sum=0;
printf(输入计算组数i: );
scanf(%d,&i);
printf(\n);
while(i--)
{ scanf(%d,&n);
for(j=1;j
以上问题属网友观点,不代表本站立场,仅供参考!