Computer Science, asked by agrata1267, 5 months ago

Write an algorithm to take five numbers as input and find the sum and average of those

numbers​

Answers

Answered by peehuthakur
3

Answer:

The answer is Yes. At present, I am enrolled into 100 day Expert Coder course and I am finding it really Helpful. They are prepar

Here’s some pseudocode:

Initialise TOTAL and COUNTER

While COUNTER < 5

Input NUMBER

Add NUMBER to TOTAL

Increment COUNTER

End-while

Calculate AVERAGE = TOTAL / 5

Print AVERAGE

Stop

Go code that up in your favourite language, draw up a test plan, put your test cases through it and compare the results with your expected results. The better you do this, the better you can be pleased with your code

Similar questions