#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if(a>=0&&a<=10&&b>=0&&b<=10)
cout<<a+b<<endl;
return 0;
}
转载于:https://www.cnblogs.com/yulianzhi/archive/2012/05/03/2480460.html
#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if(a>=0&&a<=10&&b>=0&&b<=10)
cout<<a+b<<endl;
return 0;
}
转载于:https://www.cnblogs.com/yulianzhi/archive/2012/05/03/2480460.html