A regular polygon is an nsided polygon in which all sides ar
Solution
import math
n = int(input(\"Enter the number of sides: \"))
side = float(input(\"Enter the side: \"))
area = (n * side * side)/(4 * math.tan(math.pi/n))
print(\"The area of the polygone is \"+str(area))
Output:
sh-4.3$ python3 main.py
Enter the number of sides: 5
Enter the side: 6.5
The area of the polygone is 72.69017017488385
