Q&A
여기서 사용자가 x, y 를 입력하게 하는 방법도 있을까 궁금합니다
def quot_and_rem(x,y): quot = x//y rem = x%y return quot, rem x = int(input()) y = int(input()) quot, rem = quot_and_rem(x,y) print(quot, rem)
- Likes
- 2
- Comments
- 3
- Viewcount
- 388
Q&A
def quot_and_rem(x,y): quot = x//y rem = x%y return quot, rem x = int(input()) y = int(input()) quot, rem = quot_and_rem(x,y) print(quot, rem)