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