l = 7
c = 2.4
r = (c**2+l**2)**0.5
x = c + r
y=c*x
print(x, y)
d = l**2 -2*c**2-2*c*r
print(d, r)
x1 = (c+r +d**0.5) /2
x2 = (c+r -d**0.5) /2
print(x1, x2)

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: