#include<stdio.h>
int main(void)
{
int x, y, w=0;
puts("请输入两个整数。");
printf("整数1:");
scanf("%d",&x);
printf("整数2:");
scanf("%d",&y);
if (x == y)
w = x + y;
else
{
if (x > y)
x^=y^=x^=y;
for (; x<=y; ++x)
w += x;
}
printf("两数之间的所有数的和是:%d\n",w);
return 0;
}