RosettaCodeData/Task/A+B/JavaScript/a+b-3.js

6 lines
136 B
JavaScript
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
process.stdin.on("data", buffer => {
console.log(
(buffer + "").trim().split(" ").map(Number).reduce((a, v) => a + v, 0)
);
});