Divide user input in Python / How to Tutorial

preview_player
Показать описание
Divide input integers
Write a program that reads integers user_num and div_num as input, and outputs user_num divided by div_num three times using floor divisions
Ex: if the input is
2000
2
the output is:
1000
500
250
Note: in Python 3, floor division discards fractions Ex: 6//4 is 1(the 0.5 is discarded)
Рекомендации по теме
Комментарии
Автор

Is your laptop Giveaway international ??

hemlata