Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function multiTable(input){
- let multiplicationNumber = Number(input[0]);
- let result = 0;
- for (let i = 1; i <= 10; i++) {
- result = i * multiplicationNumber;
- console.log(`${i} * ${multiplicationNumber} = ${result}`);
- }
- }
Add Comment
Please, Sign In to add comment