You are viewing a single comment's thread. Return to all comments →
Javascript
function main() { const n = parseInt(readLine().trim(), 10);
for(let i=1; i <= 10; i++){ console.log(``${n} x $`{i} = ${n*i}`) }
}
Seems like cookies are disabled on this browser, please enable them to open this website
Day 5: Loops
You are viewing a single comment's thread. Return to all comments →
Javascript
function main() { const n = parseInt(readLine().trim(), 10);
}