mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Update mathgen.py
This commit is contained in:
committed by
GitHub
parent
c5ede58ba7
commit
8e2df67c1e
@@ -40,7 +40,7 @@ def multiplicationFunc(maxRes = 99, maxMulti = 99):
|
|||||||
i = int(1)
|
i = int(1)
|
||||||
j = 0 #Indices for the loop
|
j = 0 #Indices for the loop
|
||||||
d = [] #Array to store the factors
|
d = [] #Array to store the factors
|
||||||
while(i<=c): #Factors are less than or eqaul to the number
|
while(i<=c): #Factors are less than or equal to the number
|
||||||
if(c%i == 0): #If the remainder is 0, the number is a factor
|
if(c%i == 0): #If the remainder is 0, the number is a factor
|
||||||
d[j] = i #Store the factor
|
d[j] = i #Store the factor
|
||||||
j += 1 #Move to the next index
|
j += 1 #Move to the next index
|
||||||
|
|||||||
Reference in New Issue
Block a user