Computer Science, asked by alyamishra18, 9 hours ago

write algorithm to add 5 numbers​

Answers

Answered by krishnapandey14421
1

Answer:

Here is the explanation

Explanation:

How will you write an algorithm to sum five numbers and find the average of the sum of the five numbers?

Don’t overthink it.

Read five numbers.

Add them together.

You’re probably wondering why you don’t divide by 5.

That’s because you blew the specification - the average of the *sum* is one number, and thus that’s the average. The sum. For example, 3, 4, 5, 2, 1 added together is 15. And the average of the singe number ‘15’ is… 15.

Now the average of the five numbers is something else. It’s the sum of the numbers divided by 5.

HOPE IT HELP'S

MARK AS BRAINLIEST PLEASE

Similar questions