Ask a New Question

Asked by aman

Write an algorithm that read three integers and then determines and prints the largest and the smallest integers in the group.
3 years ago

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
3 years ago
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.

Related Questions

How can I write the algorithm in pseudocode to solve this problem: There is 15 pupils in the intr... Write an algorithm to add the number of 2345+1245? How to write an algorithm to find the fibonacci series ??? Help:/ Write an algorithm that seems to make sense for dividing any whole number by a fraction Write an algorithm prompts a user to enter 15 masses of goats and display average mass Write an algorithm for a program that accepts a set of numbers and finds the smallest among them an... Write an algorithm and flow chat to print the first ten even numbers Write an algorithm to calculate compound interest Write a structured algorithm that prompts the user to input the number of days in a month. Calculate... Write an algorithm and pseudocode to represent an airline reservation process. When a customer reque...
Submit Your Answer

Question

Write an algorithm that read three integers and then determines and prints the largest and the smallest integers in the group.

Ask a New Question
Archives Contact Us Privacy Policy Terms of Use