#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
int main()
{ srand(time(NULL));
const int N(10);
int a[N], c(0), b(100), count(0);
for (int i(0); i<N;i++){
a[i]=c+rand()% (b-c+1);
count+=a[i];
}
for (int i(0); i<N; i++){
cout << a[i] << " ";
Cout << count/float(N);
return 0;
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
int main()
{ srand(time(NULL));
const int N(10);
int a[N], c(0), b(100), count(0);
for (int i(0); i<N;i++){
a[i]=c+rand()% (b-c+1);
count+=a[i];
}
for (int i(0); i<N; i++){
cout << a[i] << " ";
}
Cout << count/float(N);
return 0;
}