csc-python-solutions/07/c/5 - Finding Factors.py

5 lines
102 B
Python
Raw Normal View History

2021-02-18 18:12:19 +00:00
n = int(input())
for i in range(1, n + 1):
if n%i == 0:
print(i, "times", n//i, "equals", n)