 /*help me please make a multiplication table. I can't increase the numbers from 3 to 9*/ | Sololearn: Learn to code for FREE!

+1

# /*help me please make a multiplication table. I can't increase the numbers from 3 to 9*/

let twoNumber = 2; let nineNumber = 9; for (let i = 1; i <= 10; i++) { document.write (i * twoNumber + " ") for(let j=1; j<nineNumber; j++) { document.write (i * (twoNumber + 1) + " ") } document.write("<br>") }

+4

let twoNumber = 2; let nineNumber = 9; for (let i = 1; i <= 10; i++) { // document.write (i * twoNumber + " ") for(let j=1; j<nineNumber; j++) { document.write (i * (j + 1) + " ") } document.write("<br>") }

+1

https://code.sololearn.com/WEQAjHi9cFJM/?ref=app

0

Simba, thank you, I solve this just now through an array let twoNumber = [2, 3, 4, 5, 6, 7, 8, 9]; for (let i = 1; i <= 10; i++) { document.write (twoNumber * i + " ") for(let j=1; j<twoNumber; j++) { document.write ((twoNumber[j]) * i + " ") } document.write("<br>") }

0

for i in range(3,21): for j in range(1,11): print(f"{i}×{j}=",i*j)