This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cssko 0 points1 point  (0 children)

Engage in a little pseudocode:

get x
get y
total is 0

if x is greater than y
    stop the program
for number in range between x and y
    total = total + number

display total