Algorithm
- ๊ตฌ๊ตฌ๋จ -
๋ฌธ์
N์ ์ ๋ ฅ๋ฐ์ ๋ค, ๊ตฌ๊ตฌ๋จ N๋จ์ ์ถ๋ ฅํ๋ ํ๋ก๊ทธ๋จ์ ์์ฑํ์์ค. ์ถ๋ ฅ ํ์์ ๋ง์ถฐ์ ์ถ๋ ฅํ๋ฉด ๋๋ค.
์ ์ถ๋ ฅ ์์
๋ฌธ์ ํ๊ธฐ
let fs = require("fs");
let input = fs.readFileSync("/dev/stdin").toString().split(" ");
let a = parseInt(input[0]);
function solution () {
let result = '';
for(let i = 1; i <= 9; i++) {
console.log(a, '*', i, '=', a * i);
}
}
solution();
๋ฐ์ํ
'๊ฐ์ธ๊ณต๋ถ > Algorithm' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค][Node.js] 2741๋ฒ : N์ฐ๊ธฐ (0) | 2021.09.12 |
---|---|
[๋ฐฑ์ค][Node.js] 2740๋ฒ : ํ๋ ฌ ๊ณฑ์ (0) | 2021.09.11 |
[๋ฐฑ์ค][Node.js] 2738๋ฒ : ํ๋ ฌ ๋ง์ (0) | 2021.09.09 |
[๋ฐฑ์ค][Node.js] 2720๋ฒ : ์ธํ์ ์ฌ์ฅ ๋ํ (0) | 2021.09.08 |
[๋ฐฑ์ค][Node.js] 2711๋ฒ : ์คํ๋งจ ๊ณ ์ฐฝ์ (0) | 2021.09.07 |
๋๊ธ