answersLogoWhite

0

#include <iostream>02using namespace std;

03

04int main()

05{

06 int sum = 0;

07 int average = 0;

08 int array[10] = {1,2,3,4,5,6,7,8,9,10};

09 for (int i = 0; i < 10; ++i)

10 sum+=array[i];

11 average = sum/10;

12 cout<<"Average:"<<average;

13}

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
ReneRene
Change my mind. I dare you.
Chat with Rene
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach

Add your answer:

Earn +20 pts
Q: Pseudocode representation to determine the average of three numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp