Home > Backend Development > PHP Tutorial > PHP ninety-nine multiplication table implementation code

PHP ninety-nine multiplication table implementation code

WBOY
Release: 2016-07-25 08:52:51
Original
1874 people have browsed it
  1. for($i=1;$i{
  2. for($j=1;$j{
  3. echo "$i*$j=".$i*$j.' ';
  4. }
  5. echo '
    ';
  6. }
  7. ?>
Copy code

It's two loops , the outer layer controls the number of loop lines, and the inner layer controls the number of formulas input in each line.

The screenshot of the output result is as follows: PHP ninety-nine multiplication table implementation code



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