Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Countdown Timer 7 | PHP Loops: for, while, foreach
Practice
Projects
Quizzes & Challenges
Quizzen
Challenges
/
PHP Loops & Iteration

bookChallenge: Countdown Timer 7

Taak

Swipe to start coding

Write a function that performs a countdown from 10 to 1 and then prints a message.

  • Use a while loop to print each number from 10 down to 1, one per line.
  • After the countdown, print the message "Blast off!" on a new line.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 4
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

close

bookChallenge: Countdown Timer 7

Veeg om het menu te tonen

Taak

Swipe to start coding

Write a function that performs a countdown from 10 to 1 and then prints a message.

  • Use a while loop to print each number from 10 down to 1, one per line.
  • After the countdown, print the message "Blast off!" on a new line.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 4
single

single

some-alt