[BaekJoon] 10869번 사칙연산_JavaScript
https://www.acmicpc.net/problem/10869 Question 두 자연수 A와 B가 주어진다. 이때, A+B, A-B, A*B, A/B(몫), A%B(나머지)를 출력하는 프로그램을 작성하시오. Input 두 자연수 A와 B가 주어진다. (1 ≤ A, B ≤ 10,000) Output 첫째 줄에 A+B, 둘째 줄에 A-B, 셋째 줄에 A*B, 넷째 줄에 A/B, 다섯째 줄에 A%B를 출력한다. Example Input 7 3 Example Output 10 4 21 2 1 My Solutions const fs = require("fs"); const filePath = process.platform === "linux" ? "/dev/stdin" : "./input.txt"; con..
2022. 4. 1.