l100/opdrachten/H6/6.1.php

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <?php for($nummer=1;$nummer<=10;$nummer++){ $kwadraat = $nummer*$nummer; echo"$nummer in het kwadraat = $kwadraat, <br/>"; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse