php双层循环(九九乘法表)
实例如下:
<?php echo "<table width = 800 height = 200 border = 1>"; //输出边框 for($i=1;$i<=9;$i++) //控制每行 { echo "<tr>"; //输出一行 for($j=1;$j<=$i;$j++) //控制每列 { echo "<td>"; //输出一列 echo $i.'*'.$j.'='.$i*$j; echo "</td>"; } echo "</tr>"; } echo "</table>"; ?>
【运行结果】
相关推荐
MXstudying 2020-09-05
WasteLand 2020-09-15
<?php. if (!empty($_POST)) {. $data1 = $_POST["data1"];$data2 = $_POST["data2"];$fuhao = $_POST["fuh
mathchao 2020-09-15
zyyjay 2020-11-09
xuebingnan 2020-11-05
samtrue 2020-11-22
stefan0 2020-11-22
yifangs 2020-10-13
songshijiazuaa 2020-09-24
hebiwtc 2020-09-18
天步 2020-09-17
83911535 2020-11-13
whatsyourname 2020-11-13
zhouyuqi 2020-11-10
Noneyes 2020-11-10
mathchao 2020-10-28
王志龙 2020-10-28