标题:请问问题出在哪?
取消只看楼主
scibar
Rank: 1
等 级:新手上路
帖 子:25
专家分:6
注 册:2018-4-23
结帖率:80%
已结贴  问题点数:20 回复次数:1 
请问问题出在哪?
题目要求:求所输入的上下限整数间所有整数的平方和

搜索更多相关主题的帖子: 要求 输入 上下 整数 平方 
2018-04-23 21:22
scibar
Rank: 1
等 级:新手上路
帖 子:25
专家分:6
注 册:2018-4-23
得分:0 
回复 2楼 ab1412
你好,为什么完善后的程序sums正确,但是uper和lower的值在输出的时候分别都增加了?
enter uper and lower integer limits:
3 1
the sums of the squares from 4 to 3 is 14.
enter uper and lower integer limits:
2 1
the sums of the squares from 3 to 2 is 5.
enter uper and lower integer limits:
2018-04-24 09:24



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-486322-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017261 second(s), 9 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved