大きさ11の配列rootの各要素に3.0、3.1、・・・・・4.0の平方根を求めてから、
各要素の値を少数第8位まで出力しなさい。

#include<iostream.h>
#include<math.h>
#include<iomanip.h>

int main(void)
{
double root[11];

for(int x=0; x<11; x++)
root[x]=sqrt(3.0+x/10.0);

cout << setiosflags(ios :: fixed);
for(x=0; x<11; x++)
cout << setprecision(8) << root[x] << endl;

return 0;
}

ってやったんですけどうまくいきません。何が悪いんでしょうか?