first commit with existing project files
This commit is contained in:
12
algo_js/multiplication.js
Normal file
12
algo_js/multiplication.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const prompt = require('prompt-sync')();
|
||||
|
||||
// Table de multiplication
|
||||
|
||||
let n = parseInt(prompt("Entrez un nombre entier : "));
|
||||
let table = "";
|
||||
|
||||
for (let i = 1; i <= 9; i++) {
|
||||
table += `${n} x ${i} = ${n * i}\n`;
|
||||
}
|
||||
|
||||
console.log(table);
|
||||
Reference in New Issue
Block a user