#include<stdio.h> main(void) { int i,n; double x,y; printf("Enter x:"); scanf("%lf",&x); printf("Enter n:"); scanf("%d",&n); for(i=1;i<=n;i++){ y=x*x; } printf("y=%f\n",y); return 0; }
转载于:https://www.cnblogs.com/tutuaixiaomei/p/3379305.html
#include<stdio.h> main(void) { int i,n; double x,y; printf("Enter x:"); scanf("%lf",&x); printf("Enter n:"); scanf("%d",&n); for(i=1;i<=n;i++){ y=x*x; } printf("y=%f\n",y); return 0; }
转载于:https://www.cnblogs.com/tutuaixiaomei/p/3379305.html