백준 2742번 JavaScript 문제
const fs = require("fs");
let input = (process.platform === "linux"
? fs.readFileSync("/dev/stdin").toString()
: `5`
).trim();
let numberN = Number(input);
let answer = "";
for (let i = numberN; i > 0; i--) {
answer += i + "\n";
}
console.log(answer);