Asked by aman
Write an algorithm that read three integers and then determines and prints the largest and the smallest integers in the group.
Answers
Answered by
oobleck
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
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
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.