int main() {
int i=50,j=100,res=0;
while(i<=j){
res+=i;
i++;
}
cout<<"Sum of 50 to 100 inclusive is"<<res<<endl;
return 0;
}
int main() {
int i=10;
while(i>=0){
cout<<i<<endl;
i--;
}
return 0;
}
int main() {
int a,b;
cout<<"请输入两个整数:";
cin>>a>>b;
int large,litter;
if(a>b){large=a;litter=b;}
else{large=b;litter=a;}
while(litter<=large){
cout<<litter<<endl;
litter++;
}
return 0;
}