Write a function named nullOrNotNull, which takes an argument number of type Int? and returns -1 if number is null; otherwise, it returns number.
Nullable and non-nullable types
Null or not null
Report a typo
Write a program in Kotlin
// write your function 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.