wsp_m0/www/public/upp2/loop.php
2024-09-03 14:45:07 +02:00

13 lines
177 B
PHP

<?php
echo "FOR:<br>";
for ($i = 1.0; $i < 5; $i+= 0.1 ) {
echo $i . ", ";
}
echo "<br>";
echo "WHILE:<br>";
$i = 1.0;
while($i < 5) {
echo $i . ", ";
$i+= 0.1;
}
?>