This code is supposed to print the = symbol. But, when I run the code, it shows nothing … and my code editor says:
Variable 'age' is never used
Variable 'layer' is never used.
I don't understand what is happening here (note: I am a total beginner).
fun main() {
val age = 24
val layers = 5
// printCakeCandles(age)
fun printCakeTop(age: Int) {
repeat(age + 2) {
print("=")
}
println()
}
// printCakeBottom(age, layers)
}