```cpp
include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
int main(){
int x,y,i,j,n,sum=0;
while(cin>>x>>y){
sum=0;//在循环里定义sum的话,只能在循环内调用,可是出循环还需打印//此处外循环是while,所以在此或者外循环输出和下面赋值和为0
if(x<=0||y<=0){
break;
}
if(x>y)
{swap(x,y);}
for(i=x;i<=y;i++){
sum+=i;
cout<<i<<' ';
}
cout<<"Sum="<<sum<<endl;
}
return 0;
}