Lösning till uppgift 2

<?php
include 'head.php';
echo '<table style="width: 80px;">';  
$i = 1;
while ($i <=10) {
  echo '<tr><td>' . $i . 'x7</td><td>=</td><td>' . ($i*7) . '</td></tr>';
  $i++;
}
echo '</table>';
include 'foot.php';