Write an algorithm to find average of 10 number

Create a loop that executes 10 times
With each iteration of the loop, ask the user to input a number
Each time a number is entered, add its value to a sum variable
After the loop finishes, you should have the total of the 10 numbers entered
Divide this total by 10 to get the average

Good luck with your schoolwork! This was pretty straightforward so hopefully you’ll learn something just by reading and understanding what I wrote. Just remember, you’ll be flagged for plagiarism if you copy/paste it!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.