Programming Examples

Python program to accept side of Equilateral Triangle and find its area


Write a Python program to accept the side of Equilateral Triangle and find its area 

A = (√3)/4 × side2

import math
a=float(input("Enter the Length of Side"))
area=(math.sqrt(3)/4)*(a**a)
print("Area of Triangle is : ",area)
Output

Enter the Length of Side5

Area of Triangle is :  1353.1646934131852

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad