Filling blanks with the correct data types

Report a typo

You are developing a simple program in Kotlin. You have a few placeholders (indicated by ▭) in your code where you need to specify the type of data. The values to be stored are 10, 10_000_000_000, 10.5f, 10.5, true, and 'K'. Please fill the blanks in code with the appropriate basic types ('Int', 'Long', 'Float', 'Double', 'Boolean', 'Char'), respectively.

Fill in the gaps with the relevant elements
fun main() { 
    val integerNumber:  = 10 
    val longNumber:  = 10_000_000_000 
    val floatNumber:  = 10.5f 
    val doubleNumber:  = 10.5 
    val booleanTruth: Boolean = true 
    val character: Char = 'K' 
    println("Int: $integerNumber, Long: $longNumber, Float: $floatNumber, Double: $doubleNumber, Boolean: $booleanTruth, Char: $character.") 
}
DoubleFloatLongInt
___

Create a free account to access the full topic