Show the output of the following code:
#includeusing namespace std;const double PI = 3.14159 ;double getArea(double radius){ return radius * radius * PI;}void displayArea(double radius){ cout << getArea(radius) << end⌉;}int main(){ double r1 = 1; double r2 = 10; cout << getArea(r1) << end⌉; displayArea(r2);}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.