Desafio for

This commit is contained in:
2026-05-21 21:13:49 -03:00
parent 220741c303
commit 781602af93
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title>Contagem Regressiva</title>
<style>
.alerta {
color: red;
font-weight: bold;
}
</style>
</head>
<body>
<?php
for ($i = 10; $i >= 1; $i--) {
// Destacar os 3 últimos segundos
if ($i <= 3) {
echo "<h3 class='alerta'>$i</h3>";
} else {
echo "<h3>$i</h3>";
}
}
// Mensagem final
echo "<h1>FOGUETE LANÇADO! </h1>";
?>
</body>
</html>