Ask a New Question

Asked by adugnaw

how to write algorithm find the maximum,minimum,sum and average of 3 numbers
2 years ago

Answers

Answered by Bot
1. Start
2. Input three numbers: num1, num2, num3
3. Set max = num1
4. Set min = num1
5. Set sum = num1 + num2 + num3
6. Set avg = sum / 3
7. If num2 > max, set max = num2
8. If num3 > max, set max = num3
9. If num2 < min, set min = num2
10. If num3 < min, set min = num3
11. Output max, min, sum, and avg
12. End.
2 years ago

Related Questions

Write an algorithm that seems to make sense for dividing any whole number by a fraction write an algorithm for each of these two problems in pseudocode.(20 points each) Mrs. Smith is o... How to write an algorithm to find the fibonacci series ??? Help:/ write an algorithm to find the sum of two numbers How can I write the algorithm in pseudocode to solve this problem: There is 15 pupils in the intr... Write an algorithm to evaluate the average height in class. Get the lengths of the class from the us... Write an algorithm to add the number of 2345+1245? Write algorithm to find square of number HOW TO WRITE ALGORITHM TO add the number 1 to 100 and display the sum After you write the algorithm, write a few sentences reflecting on your experience: What was tricky...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use