The problem
Write a program that prompts the user to enter the side of a hexagon and displays its area. The formula for computing the area of a hexagon is
Area = 3 Sqrt 3 / 2 s ^ 2
where s is the length of a side. Here is a sample run:
Write a program that prompts the user to enter the side of a hexagon and displays its area. The formula for computing the area of a hexagon is
Area = 3 Sqrt 3 / 2 s ^ 2
where s is the length of a side. Here is a sample run: