Answer:
Because you have a certain amount of money you’ll be able to spend for a certain period and helps you not go over your budget. In other words, it helps you keep track of your money so that you don’t waste more money than you are supposed to.
Explanation:
I think is the second one
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))
Explanation:
*The code is in Python.
Import the <u>math</u> to be able to compute the <em>pi</em> and <em>tan</em>
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