From 67f3590a751653abf18b6faf3d47a06ebe397649 Mon Sep 17 00:00:00 2001 From: raul Date: Thu, 18 Jan 2024 11:42:18 +0100 Subject: [PATCH] Finished multi-multiplication table --- 9.html | 5 +++++ 9.js | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/9.html b/9.html index a41cd45..006b022 100644 --- a/9.html +++ b/9.html @@ -2,6 +2,11 @@ + diff --git a/9.js b/9.js index 4c11e37..94de120 100644 --- a/9.js +++ b/9.js @@ -1,13 +1,15 @@ function multiplicador(multipl) { + document.write(`

`) for (let i = 1; i < 11; i++) { document.writeln(`${multipl} * ${i} = ${i * multipl}
`) } // Adding horizontal line for visual clarity + document.write(`

`) document.writeln(`
`) } function main() { - // Declaring multi to hold the second number + // Declaring multi to hold the first number var multi = 1; // For loop that and for every time the multiplier function ends, run multi++ to sum