习题2.3
#include<stdio.h>
int main(void)
{
int i, n;
double x,y,Y;
printf("Enter n :");
scanf("%d",&n);
printf("Enter x:");
scanf("%lf",&x);
for(i=0;i<=n;i++){
y=x*x;
Y=x*y;
printf("%lf",Y);
}
return 0;
}
#include<stdio.h>
int main(void)
{
int i, n;
double x,y,Y;
printf("Enter n :");
scanf("%d",&n);
printf("Enter x:");
scanf("%lf",&x);
for(i=0;i<=n;i++){
y=x*x;
Y=x*y;
printf("%lf",Y);
}
return 0;
}