Question: Solve this problem by using C++. Write a program that will calculates the area of a circle, has two functions in addition to main function.

Solve this problem by using C++.
Write a program that will calculates the area of a circle, has two functions in addition to main function. One of the function should be named as square, and it returns the square of any number passed to it as an argument. The square function is called in a mathematical statement. The program also has a function named getRadius, which prompt the user to enter the circle's radius. The value entered by the user is returned from the function. This program should has three functions: main, square and getRadius
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
