From 04578ce07f73d1da93a39dd49906d3f27b117ccf Mon Sep 17 00:00:00 2001 From: Lukas Baumann Date: Thu, 18 Feb 2021 19:12:19 +0100 Subject: [PATCH] Create 5 - Finding Factors.py --- 07/c/5 - Finding Factors.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 07/c/5 - Finding Factors.py diff --git a/07/c/5 - Finding Factors.py b/07/c/5 - Finding Factors.py new file mode 100644 index 0000000..f0a5add --- /dev/null +++ b/07/c/5 - Finding Factors.py @@ -0,0 +1,4 @@ +n = int(input()) +for i in range(1, n + 1): + if n%i == 0: + print(i, "times", n//i, "equals", n)