This is badly coded with very little effort or research. This is your homework, at least spend time on it doing it corretly.
Here is some little help but not all:
#include <iostream>
using namespace std;
int main(){
int i,n;
int arr[10];
n=15;
int x;
for(i=0;i<n;i++){
arr[i] = x
cout << arr[i] << endl;
}
return 0;
}
There is a few thing you got to do to make it work. I will not do it!