Program to find the area of a pentagonThe Pentagon is defined as a polygon which has 5 sides that are equal. The 5 angles present in the Pentagon are also equal. A Pentagon can be divided into 5 similar triangles. The measurement of each interior angle in a regular pentagon 108 degrees. The Formula to calculate the area of the Pentagon is, Where s is the side of the Pentagon. Algorithm
ComplexityO(1) SolutionC ProgramOutput: Area of the pentagon=162.5 PHP ProgramOutput: Area of the pentagon=162.5 Java ProgramOutput: Area of the pentagon=162.5 C# ProgramOutput: Area of the pentagon=162.5 Python ProgramOutput: Area of the pentagon=162.5 Next Topic# |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India