print "This program computes and prints the sum of all even values"
print "between 2 and a positive integer value entered by the user. \n"
integer = input("Enter a positive integer: ")
while integer <2:
if integer <2:
print "Integer must be greater than 2!"
integer = input("Enter a positive integer: ")
else:
integer2 = input("Now enter a second integer: ")
evens = (integer - integer2)/2 + 1
while True
我必须能够向用户询问两个数字,然后我的程序应该能够将两个数字之间的所有偶数相加。我刚开始编程,所以我没有学到很多东西。我试着四处寻找答案,但这里的答案对我来说没有任何意义,因为他们使用的技术对我来说太先进了。谢谢!