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

PHP ninety-nine multiplication table implementation code

WBOY
WBOYOriginal
2016-07-25 08:52:511817browse
  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



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