flow control statement
这个菜鸟是谁-5
这个菜鸟是谁-5 2018-07-05 17:54:44
0
3
1402

1.while loop statement table sets color on alternate rows;

2.for loop multiplication formula sets color on alternate rows;

这个菜鸟是谁-5
这个菜鸟是谁-5

reply all (3)
小生我怕怕啊

function jiubiao(){

for($i=1,$i<=9,$i++){

for($j=1,$j<=$i ,$j++){

echo "$j multiplied by $i is equal to: $j*$i and then change the line";

/*I just learned PHP and my head is confused. Previous line I'm still confused about the writing format, but that's what I think. The calculation result of the nine-nine multiplication table is: $J*$i, but you need an expression format when you multiply a number by a number. I think you know it!

* Thanks to Teacher Gecko from 51 Self-study Network. I am currently watching a forum case video from Teacher Ouyang Feng on the PHP Chinese website. I have gone through the basic process and learned about the forum database. Let’s make progress together! }

* */

}

}

}


    小生我怕怕啊

    Well, I can only give you an idea. I don’t know if the syntax format is correct or not. I just learned programming. I have seen JAVA doing multiplication tables elsewhere, which is the application of two FOR loops.

      无忌哥哥

      I don’t understand what this means. . .

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!