Problem Solving/boj.kr (Python)
[BOJ / 파이썬] 10869 사칙연산
hoiiiii
2022. 2. 4. 00:01
문제 : https://www.acmicpc.net/problem/10869
10869번: 사칙연산
두 자연수 A와 B가 주어진다. 이때, A+B, A-B, A*B, A/B(몫), A%B(나머지)를 출력하는 프로그램을 작성하시오.
www.acmicpc.net
두 수를 입력받아 사칙연산을 계산한다.
몫 연산자 ( // )
나머지 연산자 ( % )
Sol)
a,b = map(int,input().split())
print(a+b)
print(a-b)
print(a*b)
print(a//b)
print(a%b)