代码
#include<stdio.h>
int main()
{
int x,y,z;
printf("请输入两个整数x,y(x>=0,y<=32767):\n");
scanf("%d%d",&x,&y);
while (x<0||y>32767)
{
printf("重新输入:");
scanf("%d%d",&x,&y);
}
z=x+y;
printf("x和y的和是%d",z);
return 0;
}