void minMax(int a, int b, int c, int*big, int*small)
{
if(a>b && a >c){
*big = a;
if(b>c)
*small = c;
else
*small = b;
}
else if (b>a && b>c){
*big = b;
if(a>c)
*small = c;
else
*small = a;
}
else{
*big = c;
if(a>b)
*small = b;
else
*small = a;
}
}
What’s the question?
Always remember to add any reasonable information for someone to help or answer!!
Have a good rest of your day.