收起
用pow函数,主要部分代码如下:
for (i=1;i<=n;i++) { t = 0; for(j=0;j<i;j++) t+=pow((double)10,j); sum += t; }
报告相同问题?