read x,y,z
min = max = x
if y<min then min=y
if y>max then max=y
if z<min then min=z
if z>max then max=z
print min,max
Write an algorithm that read three integers and then determines and prints the largest and the smallest integers in the group.
1 answer