[백준1330_자바스크립트(javascript)] - 두 수 비교하기

경이·2024년 7월 18일

𝑩𝑶𝑱 (𝒋𝒔)

목록 보기
91/325

🔴 문제

두 수 비교하기


🟡 Sol

const fs = require('fs');
const path = process.platform === 'linux' ? '/dev/stdin' : 'Wiki\\input.txt';
const [a, b] = fs.readFileSync(path).toString().trim().split(' ').map(Number);

if (a > b) console.log('>');
else if (a < b) console.log('<');
else console.log('==');

🟢 풀이

⏰ 소요한 시간 : -

조건문에 따라 문제에서 요구하는 결과 값을 출력해주면 된다. ^~^


🔵 Ref

profile
록타르오가르

0개의 댓글