Too big for us

Report a typo

Write a function that throws an exception with the message It's too big if a value is greater than zero; otherwise, it should return the value.

Sample Input 1:

-1

Sample Output 1:

-1
Write a program in Kotlin
fun returnValue(): Int {
val value = readln().toInt()

// write your code here
}
___

Create a free account to access the full topic