The sum of integers from a to b

Report a typo

Read two integers a and b. Print the sum of all the integers from a tob inclusive. It is guaranteed that a <b.

Sample Input 1:

1
24

Sample Output 1:

300
Write a program in Kotlin
fun main() {
// put your code here
}
___

Create a free account to access the full topic