#
set x = 1                    # set outer loop value
while ($x <= $1)             # outer loop
 set y = 1                   # set inner loop value
 while ($y <= $1)            # inner loop
   @ v = $x * $y             # calculate entry
   echo -n $v "       "      # display entry
   @ y ++                    # update inner loop counter
 end
 echo ""                     # newline
 @ x ++                      # update outer loop counter
end
