"; for($i = 0; $i < ($times + 1); $i++){ if($i == 0){ echo ""; foreach(range(1, $times) as $num) echo "$num"; echo ""; }else{ echo "$i"; foreach(range(1, $times) as $num) echo "".$i * $num.""; echo ""; } } echo ""; } else { echo << Input Number of Rows and Columns for Multiplication Table

HTML; } ?>