php 9x9乘法表

";
}
echo "
"; /***while循环乘法表***/ $i = 1; while ($i <= 9) { $j = 1; while ($j <= $i) { echo "$i X $j = " . ($i * $j); echo "   "; $j++; } echo "
"; $i++; } echo "
"; /***do-while循环9*9乘法表***/ $i = 1; do { $j = 1; do { echo "$i X $j = " . ($i * $j); echo "   "; $j++; } while ($j <= $i); echo "
"; $i++; } while ($i <= 9); ?>
php 9x9乘法表_第1张图片
http://1kul.cn/taobao

你可能感兴趣的:(php 9x9乘法表)