marinvch

12. Multiplication Table

Sep 26th, 2018
145
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve(args) {
  2.     let multyply = Number(args);
  3.     let sum = 0;
  4.  
  5.     for (let i = 1; i <= 10; i++) {
  6.         console.log(`${multyply} X ${i} = ${sum=multyply*i}`)
  7.     }
  8. }
RAW Paste Data