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