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

bookChallenge: Countdown Timer 7

Compito

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.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 4
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

close

bookChallenge: Countdown Timer 7

Scorri per mostrare il menu

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 4
single

single

some-alt