add new flie js/l2.js for multiplication tables up to 100
This commit is contained in:
parent
03bc2b79bb
commit
c179c54d66
1 changed files with 14 additions and 0 deletions
14
js/l2.js
Normal file
14
js/l2.js
Normal file
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
Loading…
Reference in a new issue