Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main()
- {
- const int n = 10;
- int x[n];
- double result;
- for (int i = 0; i < n; i++)
- {
- cout << "Vvedite " << i+1 << "-u ocenky: ";
- cin >> x[i];
- result += x[i];
- }
- cout << "Sredniy bal: " << result / n << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement