/
rnekrasov
/
Python
Обзор
Документация
Войти
/
rnekrasov
/
Python
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
factors.py
10 строк
284 B
slowy07
refactor: clean code
30 янв 2022, 04:33
30 янв 2022, 04:33
f0af0c4
Код
Авторство
О чём код?
import math print("The factors of the number you type when prompted will be displayed") a = int(input("Type now // ")) b = 1 while b <= math.sqrt(a): if a % b == 0: print("A factor of the number is ", b) print("A factor of the number is ", int(a / b)) b += 1