Im just starting googles kotlin cert program. Im trying to practice what i just learned from memory. This is what I have so far
fun main(border: String, timeToRepeat: Int) {
val border = “-×-”
val timeToRepeat = 3
printBorder(border, timeToRepeat)
print(“Check this out Colt!”)
printBorder(border, timeToRepeat)
}
fun printBorder(border: String, timeToRepeat: Int) {
repeat(timeToRepeat){
print(border)
}
println()
}
Did i do something to make it not understand the main function?