#include<stdio.h> int main(void) { int n,i; double x,y; scanf_s("%d",&n); scanf_s("%lf",&x); y=1; for(i=1;i<=n;i++){ y=y*x; } printf("%.2f\n",y); return 0; }
这个真没加的啊
#include<stdio.h> int main(void) { int n,i; double x,y; scanf_s("%d",&n); scanf_s("%lf",&x); y=1; for(i=1;i<=n;i++){ y=y*x; } printf("%.2f\n",y); return 0; }
这个真没加的啊
转载于:https://www.cnblogs.com/blgl/p/3376411.html