The number of integers and the numbers themselves are entered from the keyboard.
August 15, 2021 | education
| The number of integers and the numbers themselves are entered from the keyboard. find the arithmetic mean of the squares of the entered numbers
C ++ program.
#include <iostream>
using namespace std;
int main () {
setlocale (LC_ALL, “Russian”);
int n;
int a;
int s;
cout << “Enter the number of numbers” << endl;
cin >> n;
for (int i = 0; i <n; i ++) {
cout << “Enter a number” << endl;
cin >> a;
s = s + a;
}
cout << s / n;
return 0;
}
One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.