mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Fixed useless parameters on Multiplication
This commit is contained in:
@@ -44,6 +44,7 @@ def multiplicationFunc(maxRes = 99, maxMulti = 99):
|
|||||||
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
|
||||||
|
i += 1 #Next number
|
||||||
a = random.randint(0, c) #Generate a multiplicant
|
a = random.randint(0, c) #Generate a multiplicant
|
||||||
b = c/a #Find the other multiplicant
|
b = c/a #Find the other multiplicant
|
||||||
problem = str(a) + "*" + str(b) + "="
|
problem = str(a) + "*" + str(b) + "="
|
||||||
|
|||||||
Reference in New Issue
Block a user