// Code 8 - Nested if
// Kotlin Programming
fun main() {
var x = 7
var y = 2
if (x < 5) {
if (y > 10) {
println("Java")
}
}
else if (x > 5) {
if (y < 10) {
println("Kotlin")
}
}
else if (x == 5) {
if (y == 10) {
println("Scala")
}
}
else {
println("Nothing!")
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: