The question is "write a program that request the user to enter two integers. The program should then calculate and report the sum of all the integers between and including the two integers. At this point, assume that the smaller integer is entered first. For example, if the user enters 2 and 9, the program should report the sum of all the integers from 2 through 9 is 44."
I have to use 2 integers, a for loop etc.. I just dont know how to make this program as smalles as posibile without making an array for instance, I hope someone can help me with this if possible.