#!/bin/sh
echo "Content-type: text/html\n\n"
echo "<html>";
echo "<head>";
echo "<title>Pitagoric table</title>";
echo "</head>";

echo "<body>";
echo "<table border='1'>";

y=1
while [ $y -lt 11 ]
do
  echo "<tr>";
  x=1
  while [ $x -lt 11 ]
  do
    echo "<td align='right'>";
    echo `expr $x '*' $y`
    x=`expr $x + 1`
    echo "</td>";
  done  
  y=`expr $y + 1`
  echo "</tr>";
done

echo "</table>";
echo "</body>";
echo "</html>";
