c++课本4--24(谭浩强第二版)
本代码有错误,有待改正
#include<iostream.h>
#include<iomanip.h>
#include<conio.h>
#include<math.h>
int main()
{
int n;
double y;
cout<<0<<endl<<1<<endl<<2<<endl;
for(n=3;n<=20;n++)
{
for(y=1;y<=1000000;y++)
{
if(y=pow(y,n-1)*pow(y,n-2)+pow(y,n-3))
cout<<setprecision(2)<<y<<endl;
}
if(n%5==0)
cout<<endl;
}
getch();
return 0;
}