Create a method called calculateArea(double radius) that returns the area of a circle using the formula:
calculateArea(double radius)
Area=π×radius2\text{Area} = \pi \times \text{radius}^2
Call this method from main() and display the result.
main()
Enter the radius of the circle: 5 Area of the circle: 78.54
There was an error while loading. Please reload this page.