Create a method called calculateArea(double radius) that returns the area of a circle using the formula you searched online:
calculateArea(double radius)
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.