Write the definition of a function max that has three int parameters and returns the largest.
.
.
Click on the title for the solution
.
.
int max (int a,int b,int c)
{if (a>b && a>c) return a;
else if (b>c) return b;
else return c;}
.
Click on the title for the solution
.
.
This is the answer:
:
int max (int a,int b,int c)
{if (a>b && a>c) return a;
else if (b>c) return b;
else return c;}
Comments
Post a Comment