Home > Backend Development > PHP Tutorial > PHP simple example--print out the 99 multiplication table

PHP simple example--print out the 99 multiplication table

巴扎黑
Release: 2016-11-22 16:43:48
Original
1744 people have browsed it

<?php
//php打印出九九乘法表
for ($i=1; $i<10; $i++){
for ($j=1; $j<=$i; $j++){
echo $j*$i;
echo &#39; &#39;;
}
echo &#39;<br />&#39;;
}
?>
Copy after login


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