Answer
Code
Work Step by Step
The program prompts the user to enter the length from the center of a pentagon to a vertex and computes the area of the pentagon.
$-Code:$
import math
r=float(input("Enter the length from the center to a vertex"))
s=(2*r)*math.sin(math.pi/5)
area=(3*math.sqrt(3)*s*s)/2
print(area)