Explore Library
KotlinIntroduction & Core Concepts

50 items

Code QuizBeginner

Explicit type mismatch

Spot a mismatch between a declared type and its value.

Codekotlin
fun main() {
    val price: Int = 19.99
    println(price)
}

What is the bug in this code?