mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
13 lines
336 B
Python
13 lines
336 B
Python
from .__init__ import *
|
|
|
|
|
|
def volumeCuboid(maxSide=20, unit='m'):
|
|
a = random.randint(1, maxSide)
|
|
b = random.randint(1, maxSide)
|
|
c = random.randint(1, maxSide)
|
|
|
|
problem = f"Volume of cuboid with sides = {a}{unit}, {b}{unit}, {c}{unit} is"
|
|
ans = a * b * c
|
|
solution = f"{ans} {unit}^3"
|
|
return problem, solution
|