+ 1
Using nested if and extended if
Write a program that takes three integers from the user (x, y, z) compares them and finds the maximum of them the second largest and the smallest
2 odpowiedzi
0
if (x>y){
if (x>z){
cout <<x;
}
else{
cout <<z;
}
}
else if (y>z){
cout <<y;
}
else {
cout <<z;
}
0
Thanks