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

1 answer

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.