+ 2
Write a menu driven program to calculate the are of equilateral & isosceles triangle
Use the formula of -equilateral triangle= math.sqrt (3)/4.0*math.pow(S,2) and isosceles triangle 1/4.0*b*math.sqrt(4*math.pow(a,2)-math.pow(b,2)
2 RĂ©ponses
- 2
You can use a switch case for this program
0
Write a Menu Driven program to find the area of an equilateral triangle, an isosceles triangle
and a scalene triangle as per userâs choice.
(i) Area of Equilateral triangle = âđ
đ
đ
đ
(ii) Area of Isosceles triangle =
đ
đ
â đ â âđđđ â đ
đ
(iii) Area of Scalene triangle = âđ â đ(đ â đ) â (đ â đ) â (đ â đ) , where s = (a +b + c)/2