Hỏi & Đáp
여기서 사용자가 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)
- Lượt thích
- 2
- Số bình luận
- 3
- Lượt xem
- 388
Hỏi & Đáp
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)