l110/H6/6.4.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<table>
<tr>
<th>Getal</th>
<th>Kwadraat</th>
<th>Derde macht</th>
</tr>
<?php
for ($i = 1; $i < 101; $i++) {
echo "<tr>";
echo "<th>$i</th>";
echo "<th>".($i*$i)."</th>";
echo "<th>".($i*$i*$i)."</th>";
echo "</tr>";
}
?>
</body>
</html>
Resultaat
Made by Thijs Aarnoudse