for the following two statements write a function prototype, one for each statem
ID: 3868791 • Letter: F
Question
for the following two statements write a function prototype, one for each statement. Given the radius, compute the area of a circle. second statement -find and return the maximum of 3 values for the following two statements write a function prototype, one for each statement. Given the radius, compute the area of a circle. second statement -find and return the maximum of 3 values for the following two statements write a function prototype, one for each statement. Given the radius, compute the area of a circle. second statement -find and return the maximum of 3 valuesExplanation / Answer
//Function Prototypes
double calArea(double radius);
int findMax(int a,int b,int c);
//Function Implementations
double calArea(double radius)
{
return 3.41459*radius*radius;
}
int findMax(int a,int b,int c)
{
if(a>b && a>c)
return a;
else if(b>c)
return b;
else
return c;
}
______________________Thank You
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.