본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬]2935번 소음

by 현장 2021. 3. 20.

 

-코드

 

n = int(input())
c = input()
n2 = int(input())

if c == '+':
    print(n + n2)

elif c == '*':
    print(n * n2)