代码如下: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;}/PREBRPRE/PREP /PPRE/PREPRE/PRE