Answer:
import math
n = int(input("Enter the number of sides: "))
s = float(input("Enter the length of a side: "))
area = (n * s**2) / (4 * math.tan(math.pi/n))
print("The area is: " + str(area))
Step-by-step explanation:
*The code is in Python.
Import the math to be able to compute the pi and tan
Ask the user to enter the number of sides and the length of a side
Calculate the area using the given formula
Print the area