#! perl -w
#
# Multiplication (or addition) tables in various bases
#
# Copyright 2016 Ken Takusagawa
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see
Base $base
$convert[$i] | "; } print "$html_op||
---|---|---|
$convert[$i] | "; for$j($start..$base-1){ #print"$base $i $j ",&multiply($base,$i,$j),"\n"; print "",&multiply($base,$i,$j)," | "; } print "$convert[$i] |
$operator | ); for$i($start..$base-1){ print "$convert[$i] | "; } print "$html_op