
[프로그래머스] 코딩테스트 연습 > 코딩 기초 트레이닝 > 덧셈식 출력하기
프로그래머스/코딩 기초 트레이닝
2024. 11. 16. 16:01
문제 설명두 정수 a, b가 주어질 때 다음과 같은 형태의 계산식을 출력하는 코드를 작성해 보세요.a + b = c제한사항1 ≤ a, b ≤ 100 내 풀이: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(`${input[0]} + ${input[1]} = ${Number(input[0]) + Number(input[1..