#include<iostream>
int main(){
std::cout<<" Enter two numbers: "<<std::endl;
int v1=0,v2=0;
std::cin >> v1 >> v2;//读取数值
std::cout<<v1<<" * " <<v2<<" = "<<v1*v2<<std::endl;
return 0;
int sum=0,val=1;
while (val<=10){
sum+=val;
++val;
}
std::cout<<"Sum of 1 to 10 inclucive is "<<sum<<std::endl;
return 0;
int sum=0,val=50;
while (val<=100){
sum+=val;
++val;
}
std::cout<<"Sum of 50 to 100 inclucive is "<<sum<<std::endl;
return 0;*/
/*int i=10;
while (i>=1){
std::cout<<i<<std::endl;
--i;
}
return 0;
std::cout<<" Enter two numbers:"<<std::endl;
int v1=0,v2=0,i=0;
std::cin>>v1>>v2;
if(v1>=v2){i=v2;
while (i<=v1 && i>=v2){
std::cout<<i<<std::endl;
++i;}}
else{
i=v1;
while(i>=v1 && i<=v2){
std::cout<<i<<std::endl;
++i;}
}
return 0;
int sum=0,value=0;
while (std::cin >> value)
sum+=value;
std::cout <<"Sum is:"<<sum<<std::endl;
return 0;
}