Copy code The code is as follows:
for($i=1;$i<10;$i++ )
{
for($j=1;$j<=$i;$j++)
{
$result = $i*$j;
if(strlen($result )==2)
{
echo "$j*$i=$result";
echo " ";
}
else
{
echo "$j *$i=$result";
echo " ";
}
}
echo "
";
}
?>
Write random small programs to promote my passion for php, I hope I can stick to it
http://www.bkjia.com/PHPjc/320294.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/320294.htmlTechArticleCopy the code as follows: ?php for($i=1;$i10;$i++) { for($ j=1;$j=$i;$j++) { $result = $i*$j; if(strlen($result)==2) { echo "$j*$i=$result"; echo "" ; } else { echo "$j*$i=$result";...