Write a program that reads two integers and displays the sum of the integers between them. For example, if the user enters 3 and 8, the program should display 22 because 4+5+6+7 = 22. The program should check which one of the two input numbers is the greater and act accordingly.
Sample Input:
3 8
Sample Output:
22
References: C From Theory