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