From c179c54d66bcb8f146146c1cafee7d56f45e98f3 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 28 May 2026 23:18:33 +0300 Subject: [PATCH] add new flie js/l2.js for multiplication tables up to 100 --- js/l2.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 js/l2.js diff --git a/js/l2.js b/js/l2.js new file mode 100644 index 0000000..79fc259 --- /dev/null +++ b/js/l2.js @@ -0,0 +1,14 @@ +const readline = require('readline').createInterface({ + input: process.stdin, + output: process.stdout +}); + +readline.question('Число ', (answer) => { + let pol = Number(answer); + readline.close(); + let x = 0; + while(x <= 100) { + x = x + 1; + console.log(pol, '*', x, '=', pol * x); + } +});