+ 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>") }

19th Apr 2021, 10:07 AM
Тимур Завьялов
Тимур Завьялов - avatar
5 Respostas
+ 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>") }
19th Apr 2021, 10:35 AM
Simba
Simba - avatar
20th Apr 2021, 7:24 PM
yasf mod
yasf mod - avatar
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[0] * i + " ") for(let j=1; j<twoNumber[6]; j++) { document.write ((twoNumber[j]) * i + " ") } document.write("<br>") }
19th Apr 2021, 10:50 AM
Тимур Завьялов
Тимур Завьялов - avatar
0
for i in range(3,21): for j in range(1,11): print(f"{i}×{j}=",i*j)
20th Apr 2021, 10:48 AM
Avanish Singh
Avanish Singh - avatar
0
No entiendo una
21st Apr 2021, 5:11 AM
Yeferson David
Yeferson David - avatar