# 输入起始和结束的正整数，求其两个正整数之间的偶数和。

<p>输入起始和结束的正整数&#xff0c;求其两个正整数之间的偶数和。</p>

## template

```python
x1 = input("请输入起始数：")
x2 = input("请输入结束数：")
a = int(x1)
b = int(x2)
sum1 = 0
for i in range(a, b+1):
	if i % 2 == 0:
		sum1 += i
		i += 2
	else:
		i += 1
sum2 = 0
for i in range(a+1, b):
	if i % 2 == 0:
		sum2 += i
		i += 2
	else:
		i += 1
print(str(a)+"到"+str(b)+"之间的偶数和(边界是偶数时算这两个边界)是："+str(sum1))
print(str(a)+"到"+str(b)+"之间的偶数和(边界是偶数时不算两个边界)是："+str(sum2))
```

## 答案

```python

```

## 选项

### A

```python

```

### B

```python

```

### C

```python

```