F = int(input("数字1:"))
L = int(input("数字2:"))
S = F
if F > L:#排列2个值的顺序
F = L
L = S
S = F
while F < L:#计算
F +=1
S += F
print ('和=%d'%(S))#输出
F = int(input("数字1:"))
L = int(input("数字2:"))
S = F
if F > L:#排列2个值的顺序
F = L
L = S
S = F
while F < L:#计算
F +=1
S += F
print ('和=%d'%(S))#输出