C Find the max and min numbers of A B and C Input A Input
C++ :
* Find the max and min numbers of A B and C
Input A
Input B
Input C
Output Max Number and Min Number
* Example:
If A = 3 B = 5 and C = 1
Output Max: 5 Min: 1
Solution
Void FindMaxMin(int A,int B,int C int&max, int&min)
{
If(A<=B && A<=C)
{
min=A;
If(y<A)
max=C:
else
max=B;
}
If (Y<=A && y<=C)
{
min=B
If(A<C)
max=C;
else
max=B;
else
max=A;
}
}
