#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}
Chat with our AI personalities
Standard form
Normally, at least two numbers are used to determine an average. If there is only one number, then the average is the number itself, so the answer is 48.
Certainly! Here's a simple pseudocode snippet that reads two numbers, multiplies them together, and prints out their product: 1. Read firstNumber 2. Read secondNumber 3. product = firstNumber * secondNumber 4. Print product In this pseudocode, we first read the two numbers, then multiply them to calculate the product, and finally print out the result.
Whole numbers are the best representation of students.
It is a representation of numbers using 16 as the base.