You work at a bakery where the whole process is automated. You received a new order for three cakes. Now, run the bakeCake function three times.
Suspending functions
A piece of cake
Report a typo
Write a program in Kotlin
suspend fun bakeCake() {
println("I'm a cyber baker. I'm starting to bake fast!")
delaySeconds(5)
println("The cake is ready!")
}
// Please change only the "main" function:
fun main() {
}
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.