l201/forloop.php

<!DOCTYPE html> <html lang="en"> <head> <title>forloop</title> </head> <body> <?php for ($x = 20; $x >= 2; $x--){ $kwadraat = $x * $x; echo "<div> Het kwadraat van $x = $kwadraat</div>"; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse