mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Merge https://github.com/Swayam221/mathgenerator into swayam
This commit is contained in:
@@ -78,7 +78,7 @@ def binaryComplement1sFunc(maxDigits=10):
|
||||
question += temp
|
||||
answer += "0" if temp == "1" else "1"
|
||||
|
||||
problem = question
|
||||
problem = question+"="
|
||||
solution = answer
|
||||
return problem, solution
|
||||
|
||||
@@ -142,7 +142,7 @@ def lcmFunc(maxVal=20):
|
||||
while(y):
|
||||
x, y = y, x % y
|
||||
d = c // x
|
||||
problem = f"LCM of {a} and {b} = "
|
||||
problem = f"LCM of {a} and {b} ="
|
||||
solution = str(d)
|
||||
return problem, solution
|
||||
|
||||
|
||||
Reference in New Issue
Block a user