Home > Backend Development > PHP Tutorial > php 小乘法表实现代码_PHP

php 小乘法表实现代码_PHP

WBOY
Release: 2016-06-01 12:23:15
Original
941 people have browsed it
复制代码 代码如下:
for($i=1;$i{
for($j=1;$j{
$result = $i*$j;
if(strlen($result)==2)
{
echo "$j*$i=$result";
echo " ";
}
else
{
echo "$j*$i=$result";
echo "  ";
}
}
echo "
";
}
?>

随便写写小程序,促进自己对php的热情,希望我能坚持下去
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template