์ฝ๋ฉ/๋ฐฑ์ค BAEKJOON
[๋ฐฑ์ค/C์ธ์ด] 10869๋ฒ : ์ฌ์น์ฐ์ฐ
์ด์ง์ ๐
2025. 2. 6. 12:05
# ๋ฌธ์
๋ ์์ฐ์ A์ B๊ฐ ์ฃผ์ด์ง๋ค. ์ด๋, A+B, A-B, A*B, A/B(๋ชซ), A%B(๋๋จธ์ง)๋ฅผ ์ถ๋ ฅํ๋ ํ๋ก๊ทธ๋จ์ ์์ฑํ์์ค.
https://www.acmicpc.net/problem/10869
# ์์ค ์ฝ๋
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("%d\n%d\n%d\n%d\n%d\n", a+b, a-b, a*b, a/b, a%b);
return 0;
}