C# Calculating Area and Perimeter of Pentagon – Programming, Pseudocode Example, C# Programming Example
Basic C# Console

C# Calculating Area and Perimeter of Pentagon

For calculate the area of a pentagon, “a” and “r” length must be known.

You see a triangle in the bottom picture. After calculating the area of the triangle, the area of the pentagon can be found by multiplying with 5.

 

C# Code:

 

Output:

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.