Skip to main content

Posts

Showing posts with the label #Write a Python program to calculate area of an equilateral triangle.

ads1

Python basic, 14. Write a Python program to calculate area of an equilateral triangle.

  14.   Write a Python program to calculate area of an equilateral triangle. Solution :- import math side = float(input("Enter the Side of a traingle :- ")) area = (math.sqrt(3)/4)*(side * side) print("The area of a equilateral traingle is :- ",area)   Output :-

ads2