var tablNum = prompt("enter numberr");
var tableCout = (tablNum * 10) + 1 ;
for (let i = tablNum; i < tableCout; i = i + 10) {
console.log(i)
}
This is my code but when I run my code, the loop works. I am trying to make math table generator this is my code but its not working.
var tablNum = prompt("enter number");
var tableCout = (tablNum * 10) + 1 ;
for (let i = tablNum; i < tableCout; i = i + 10) {
console.log(i)
}
And what I want from my code to do is generate a table which number I type.
3? Is it meant to be a "3 times table"?