提交时间:2023-01-11 20:52:12

运行 ID: 4302

#include<bits/stdc++.h> using namespace std; int main() { int a,b; //请务必输入0~100之间的整数 cin>>a>>b; if((a<=100)&&(b<=100)&&(0<=a)&&(0<=b)){ cout<<a+b<<endl; } else{ cout<<"DATA ERROR"<<endl; cout<<"a,b must be integers between 0 and 100"<<endl; cout<<"please ty again"<<endl; } return 0; }