Write a program that takes two integers L and H (i.e. lowest and
highest integer), and calls a function CalculateSum that computes the
sum of all the numbers between L and H. Finally, the program will
print the average of all these integer numbers by dividing the sum by
the number of integers between L and H. The program should assert if
L is less than or equal to H.
View All Comments
| View Tutorial