Description
Sample Output: 3
计算a加b。
Input两个整数a和b,其中0≤a, b≤10。
Output输出a与b的和。
Sample Input: 1 2Sample Output: 3
#include <iostream> using namespace std; int main() { int a,b; cin >> a >> b; if(a<0||b<0||b>10) cout<<"Two integer a,b (0<=a,b<=10)"; else cout << a+b << endl; return 0; }