Menu
Coddy logo textTech

Recap - Countdown

Part of the Fundamentals section of Coddy's Lua journey — lesson 76 of 90.

challenge icon

Challenge

Easy

Create a rocket launch countdown system that uses a numeric for loop with a negative step to simulate the final countdown sequence. Write a for loop that counts backwards from 10 down to 1, printing each number on a separate line.

After the countdown loop completes, print the message "Liftoff!" to signal that the rocket has launched. This demonstrates how the negative step parameter allows you to count backwards and how code after the loop executes once the loop finishes.

Try it yourself

-- TODO: Write your code here to create the countdown loop

-- TODO: Print the final message after the countdown

All lessons in Fundamentals