Hey am trying to run this code but the for loop executes only once. Removing the line cout< fixes the problem but I need the ans to be precise to 15 decimal places. here's the code
int n,i;
cin>>n;
double a[n];
for(i=0;i<n;i++){
cin>>a[i];
a[i]=(a[i]/100);
cout<<fixed<<setprecision(15)<<a[i];
}
for(i=0;i<n;i++) {
cout<<a[i];
}