JavaScript

var b = 1;

c语言

#include <stdio.h>

int main()
{
   int x,y,i,last;
   last = 1;
   printf(“输入n和n次方\n”);
   scanf(”%d%d”,&x,&y);
   for(i=1;i<=y;i++){
      last = last * y;
   }
   printf("%d的%d次方为\n",last);
}
Last modification:April 27th, 2021 at 03:59 pm
如果觉得我的文章对你有用,请随意赞赏