include[HTML_REMOVED]
include [HTML_REMOVED]
using namespace std;
int main()
{
int i,j;
while(cin>>i>>j,i>0 && j>0)//cin>>i>>j不能放在上一行,否则后一直循环,放在while里表示每输入一次i,j便判断一次
{
if(i>j)swap(i,j);
int sum=0;
for(int a=i;a<=j;a++)
{
cout<<a<<" ";
sum=sum+a;
}
cout<<"Sum="<<sum<<endl;
}
return 0;
}