print('Please, enter sides lengths:')
# Getting sides lengths
a, b, c, d, e = map(float, (input('A = '), input('B = '), input('C = '), input('D = '), input('E = ')))
# Finding rectangle area
rect_area = a * b
# Finding triangle area
triang_height = (c**2 - (a / 2)**2)**0.5
triang_area = 0.5 * a * triang_height
# Sum area
area = rect_area + triang_area
print('Total room area: %f' % area)
Comments
Leave a comment