习题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;

}

posted @ 2013-10-19 00:21  zhaoyang16  阅读(90)  评论(0编辑  收藏  举报