출처
정답
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
let input = [];
rl.on('line', function (line) {
input = line.split(' ');
}).on('close', function () {
console.log("a = " + Number(input[0]));
console.log(`b = ${Number(input[1])}`);
});
문제
'프로그래머스 > 코딩 기초 트레이닝' 카테고리의 다른 글
a와 b 출력하기 (C) (0) | 2023.07.10 |
---|---|
a와 b 출력하기 (Java) (0) | 2023.07.10 |
a와 b 출력하기 (Scala) (0) | 2023.07.10 |
a와 b 출력하기 (Python) (0) | 2023.07.10 |
문자열 출력하기 (JavaScript) (0) | 2023.07.09 |