Home >Backend Development >PHP Tutorial >php入门学习知识点八 PHP中for循环基本应用之九九乘法口绝表_PHP

php入门学习知识点八 PHP中for循环基本应用之九九乘法口绝表_PHP

WBOY
WBOYOriginal
2016-06-01 12:14:561136browse
复制代码 代码如下:
/*
*打印乘法口绝表
*/
echo "九灵九乘法口绝表


";
echo "";
for($i=1;$iecho "";
for($j=1;$jecho "";
}
echo "";
}
echo "
".$j."*".$i."=".($j*$i)."
";
echo "





";
echo "";
for($i=1;$iecho "";
for($j=$i;$jecho "";
}
echo "";
}
echo "
".$i."*".$j."=".($j*$i)."
";
?>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn