Fixed useless parameters on Multiplication

This commit is contained in:
mushahidq
2020-10-15 00:55:19 +05:30
parent 4f18c547f7
commit c5ede58ba7

View File

@@ -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) + "="