# Arup Guha
# 1/30/2012
# Program that sums numbers in any range, skipping any fixed
# number of values.
def main():
# Get the user input and set the initial sum to 0.
sum = 0
start = int(input("Please the starting integer."))
end = int(input("Please the end integer."))
step = int(input("What is your step?"))
# Go through and add each item into sum.
for i in list(range(start,end+1,step)):
sum = sum + i
# Print out the total.
print("Total is",sum)
main()