Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- int i;
- double mid = 0;
- int a[21];
- for (i = 0; i < 21; i++)
- {
- cout << "Vvedite ocenku po informatike uchenika" << i << endl;
- cin >> a[i];
- mid = mid + a[i];
- }
- mid = mid / 21;
- cout << "Ocenka nije sredney u sleduushih uchenikov:" << endl;
- for (i = 0; i < 21; i++)
- if (a[i] < mid)
- cout << "nomer [" « i « "] - ocenka " << a[i] « endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement