티스토리 뷰


[1, 1E+10] 범위의 정수 a, b를 입력받습니다.
a+b, a-b, a*b를 각 줄에 출력합니다.
if __name__ == '__main__':
a = int(input())
b = int(input())
print(a+b)
print(a-b)
print(a*b)

Arithmetic Operators | HackerRank
Arithmetic Operators | HackerRank
Addition, subtraction and multiplication.
www.hackerrank.com
'Hackerrank > Python' 카테고리의 다른 글
Write a function (0) | 2022.02.05 |
---|---|
Loops (0) | 2022.02.05 |
Python: Division (0) | 2022.02.05 |
Python If-Else (0) | 2022.02.04 |
Say "Hello, World!" With Python (0) | 2022.02.04 |