代码如下所示:
代码如下:
PRE class=cpp name="code"#include stdio.h
#include math.h
int main()
{
int x,y;
printf("求x的y次幂:n");
scanf("%d %d",&x,&y);
printf("结果是:%.2f",pow(x,y)); //要以%f输出 %d输出结果都是0
return 0;
}
/PREBR
PRE/PRE
P /P
PRE/PRE
PRE/PRE
代码如下所示:
代码如下:
PRE class=cpp name="code"#include stdio.h
#include math.h
int main()
{
int x,y;
printf("求x的y次幂:n");
scanf("%d %d",&x,&y);
printf("结果是:%.2f",pow(x,y)); //要以%f输出 %d输出结果都是0
return 0;
}
/PREBR
PRE/PRE
P /P
PRE/PRE
PRE/PRE