Ask a New Question

Asked by Tasu

Design an algorithm that compare three numbers and display the smallest to the screen?
4 years ago

Answers

Answered by oobleck
display a if a<b and a<c
display b if b<a and b<c
display c if c<a and c<b
...
what if there is no single smallest value?
4 years ago

Related Questions

Design an algorithm that accepts two values, the hourly rate and the number of hours worked by an em... design an algorithm that reads three numbers and prints that smallest number.using pseudo code and f... design an algorithm that keeps on reading numbers until the user enters-1and them determines and out... Design an algorithm that keeps reading positive numbers until the user enters a zero value, and dete... Design an algorithm that multiplies three numbers and display the results? Design an algorithm to find the average age of n students, where n is the number of students. . How is the following compare-and-contrast essay organized? Football means different things to... Which is an example of a compare-and-contrast text structure? Both cats and dogs have four paws.... Which is an example of a compare-and-contrast text structure? Snow White meets seven dwarves afte... Design an algorithm to assist a school to calculate it's canteen which sum up to 12cedis displaying...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use