Algorithm/Python (9) 썸네일형 리스트형 [Python] 10869 : 사칙연산 https://www.acmicpc.net/problem/10869 10869번: 사칙연산 두 자연수 A와 B가 주어진다. 이때, A+B, A-B, A*B, A/B(몫), A%B(나머지)를 출력하는 프로그램을 작성하시오. www.acmicpc.net #A,B 입력 아래 세줄을 A,B=map(int,input().split())으로 대체 가능 a=input().split(' ') A=int(a[0]) B=int(a[1]) #사칙연산 출력 print(A+B) print(A-B) print(A*B) print(A//B) print(A%B) #A,B 입력 A=int(input()) B=int(input()) #사칙연산 출력 print(A+B) print(A-B) print(A*B) print(A//B) prin.. 이전 1 2 다음