python-by-example-150-chall.../challenges1-11/challenage-011.py

6 lines
247 B
Python
Raw Normal View History

2019-07-17 14:56:46 +08:00
large = int(input('enter number over than 100 : '))
small = int(input('enter number smaller than 10 : '))
2025-05-26 06:49:34 +08:00
# // floor division 相当于c中的floor函数
2019-07-17 14:56:46 +08:00
answer = large//small
print('{0} goes into {1} for {2} times'.format(small, large, answer))