Question: I need help writing this in C++. the instructions are: Create a function template named circleArea(). The function receives a parameterized argument representing the radius
I need help writing this in C++. the instructions are: Create a function template named circleArea(). The function receives a parameterized argument representing the radius of a circle, and returns a double representing the circles area. (The area is computed as 3.14 multiplied by the radius squared.) Write a main()function that demonstrates that the function works correctly with either an integer or a double argument. Save the file as CircleArea.cpp
Here is what I have written but it's not working.
//CircleArea.cpp #include
int main() { double r; int r1; cout<<"Enter radius of circle(double value): "<
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
