Range multiplication

Report a typo

Write a lambda expression that accepts two long arguments as range borders and returns the multiplication of all the numbers in this range (inclusively). Guaranteed that 0 <= left border <= right border. If left border == right border then the result is any border.

Note that you don't need to write in one line, you can use loops.

Write a program in Kotlin
val lambda: (Long, Long) -> Long = TODO("Provide implementation")
___

Create a free account to access the full topic