题目描述
不太会
样例
``
include [HTML_REMOVED]
using namespace std;
int main()
{
int n, m;
while (cin >> n >> m, n > 0 && m > 0)
{
if (n > m) swap(n, m);
int s = 0;
for (int i = n; i <= m; i ++)
{
cout << i << ' ';
s += i;
}
printf ("Sum=%d\n", s);
}
return 0;
}
```