Răspuns:
problema 17:
#include <iostream>
using namespace std;
int main()
{
unsigned int nr;
cout << "Nr de note: "; cin >> nr;
unsigned int note[nr];
for(int i = 0; i < nr; i++) {
cout << "Nota " << i+1 << ": "; cin >> note[i];
}
float suma;
for(int i = 0; i < nr; i++) {
suma += note[i];
}
float media;
media = suma / nr;
cout << "Media numerelor este: " << media << endl;
return 0;
Explicație:
sper ca te-am ajutat, astept coroana