#include<stdio.h> int main() { int a,b; scanf("%d%d",&a,&b); if(a>=0&&b<=10) { printf("%d\n",a+b); }else { printf("所计算数字不在规定范围内\n"); } }
Double click to view unformatted code.