From 48b4776cb164d1abf7aaad63246eb1bbc6b8c064 Mon Sep 17 00:00:00 2001 From: Ansan P Sam <43809270+ansanpsam710@users.noreply.github.com> Date: Thu, 22 Oct 2020 22:25:50 +0530 Subject: [PATCH] Create ansanpsam710 --- contribution/ansanpsam710 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 contribution/ansanpsam710 diff --git a/contribution/ansanpsam710 b/contribution/ansanpsam710 new file mode 100644 index 00000000..f0ce8303 --- /dev/null +++ b/contribution/ansanpsam710 @@ -0,0 +1,12 @@ +# Python Program to find the factors of a number + +# This function computes the factor of the argument passed +def print_factors(x): + print("The factors of",x,"are:") + for i in range(1, x + 1): + if x % i == 0: + print(i) + +num = 320 + +print_factors(num)