mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
Fixed accidentally removed + sign
This commit is contained in:
@@ -222,7 +222,7 @@ def areaOfTriangleFunc(maxA=20, maxB=20, maxC=20):
|
|||||||
c = random.randint(1, maxC)
|
c = random.randint(1, maxC)
|
||||||
s = (a+b+c)/2
|
s = (a+b+c)/2
|
||||||
area = (s*(s-a)*(s-b)*(s-c)) ** 0.5
|
area = (s*(s-a)*(s-b)*(s-c)) ** 0.5
|
||||||
problem = "Area of triangle with side lengths: "+ str(a) +" "+ str(b) +" "+ str(c) " = "
|
problem = "Area of triangle with side lengths: "+ str(a) +" "+ str(b) +" "+ str(c) + " = "
|
||||||
solution = area
|
solution = area
|
||||||
return problem, solution
|
return problem, solution
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user