Asked by adugnaw
how to write algorithm find the maximum,minimum,sum and average of 3 numbers
Answers
There are no human answers yet.
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. 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.
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.