Write the definition of a function max that has three int parameters and returns the largest.
Answers:
int max(int x,int y,int z)
{
if (x >= z and x >= y){
return (x);}
else if (y >= x and y >= z){
return (y);}
else{
return (z);}
}
Write the definition of a function max that has three int parameters and returns the largest.
int max(int x,int y,int z)
{
if (x >= z and x >= y){
return (x);}
else if (y >= x and y >= z){
return (y);}
else{
return (z);}
}