tdphp/td1_2/9.php
2023-03-22 00:13:04 -07:00

24 lines
242 B
PHP

<?php
for ($i = 2004; $i <= 2022; $i++) {
echo "$i<br/>";
}
echo "<br/><br/>";
$k = 2004;
while ($k <= 2022) {
echo "$k<br/>";
$k++;
}
$k = 2004;
echo "<br/><br/>";
do {
echo "$k<br/>";
$k++;
} while ($k <= 2022);