search

Home  >  Q&A  >  body text

flow control statement

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

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

这个菜鸟是谁-5这个菜鸟是谁-52375 days ago1512

reply all(3)I'll reply

  • 小生我怕怕啊

    小生我怕怕啊2018-07-05 19:16:05

    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! }

    * */

    }

    }

    }


    reply
    0
  • 小生我怕怕啊

    小生我怕怕啊2018-07-05 19:02:42

    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.

    reply
    0
  • 无忌哥哥

    无忌哥哥2018-07-05 17:58:38

    I don’t understand what this means. . .

    reply
    0
  • 这个菜鸟是谁-5

    Wrong writing, it was meant to be a note

    这个菜鸟是谁-5 · 2018-07-05 18:05:18
  • Cancelreply