Odpowiedź:
Pod spodem wklejam kod prosiłbym jednak prztestować go na własnych danych, mam nadzieje, że pomogłem. :)
#include <iostream>
using namespace std;
int main(){
int tab[10], suma = 0;
double srednia;
for(int i = 0; i < 10; i++){
cout << "Podaj liczbe nr" << i+1 << ": ";
cin >> tab[i];
suma = suma + tab[i];
}
srednia = double(suma)/double(10);
cout << endl;
cout << "twoja suma wynosi: " << suma << endl;
cout << "twoja srednia wynosi: " << srednia << endl;
cout << endl;
cout << "twoja tablica liczb" << endl;
for(int j = 0; j < 10; j++){
cout << "nr" << j << ": " << tab[j] << endl;
}
return 0;
}