Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Countdown Timer 7 | PHP Loops: for, while, foreach
PHP Loops & Iteration

bookChallenge: Countdown Timer 7

Завдання

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.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 4
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

bookChallenge: Countdown Timer 7

Свайпніть щоб показати меню

Завдання

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 4
single

single

some-alt