Read two integers a and b. Print the sum of all the integers from a tob inclusive. It is guaranteed that a <b.
For loop and ranges
The sum of integers from a to b
Report a typo
Sample Input 1:
1
24Sample Output 1:
300Write a program in Kotlin
fun main() {
// put your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.