Home  >  Article  >  Backend Development  >  The effect of outputting the multiplication table

The effect of outputting the multiplication table

WBOY
WBOYOriginal
2016-07-25 09:07:57970browse
multiplication table
  1. for($i=1;$i<=9;$i++)
  2. {
  3. for($j=1;$j<=$i;$j++)
  4. {
  5. echo " $i*$j=".$i*$j."n";
  6. }
  7. echo "
    ";
  8. }
  9. ?>
Copy 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