Transforming an integer to a string via long

Report a typo

In Kotlin, you've been given a task to convert a given integer number to String. However, the direct conversion is prohibited in this case. You should at first transform this integer to a Long type and only then convert it into a string. Your task is to fill in the blanks in the provided code to correctly perform these conversions and output the final result.

Fill in the gaps with the relevant elements
fun main() {
    val intNumber:  = 100
    val longNumber:  = intNumber.()
    val strNumber: String = longNumber.()
    println("The string format of the number is $strNumber.")
}
IntLongtoLongtoString
___

Create a free account to access the full topic