티스토리 뷰


두 정수 a, b를 입력 받는다.
a를 b로 나눈 몫과 나머지를 각줄에 출력한다.
if __name__ == '__main__':
a = int(input())
b = int(input())
print(a//b)
print(a/b)

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