search

Home  >  Q&A  >  body text

for nested loop

When looping for for the second time, isn’t j equal to 2?

龚哥龚哥1142 days ago859

reply all(1)I'll reply

  • autoload

    autoload2022-01-04 09:04:07

    If it is a multiplication table, every time the outermost for loop is executed, the second level for loop will be $j=1

    reply
    0
  • Cancelreply