Answer
The output of the required program is shown below.
Work Step by Step
First of all, the user is asked to enter the side of the hexagon. Next we calculate the area according to the given formula and finally the calculated area of the hexagon is displayed.