We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99cf7d7 commit 7da17d6Copy full SHA for 7da17d6
1 file changed
genno
@@ -0,0 +1,12 @@
1
+# Python Program to find the factors of a number
2
+
3
+# This function computes the factor of the argument passed
4
+def print_factors(x):
5
+ print("The factors of",x,"are:")
6
+ for i in range(1, x + 1):
7
+ if x % i == 0:
8
+ print(i)
9
10
+num = 320
11
12
+print_factors(num)
0 commit comments