请在 下方输入 要搜索的题目:

以下程序实现了计算x的n次方,请将程序填写完整。float power(float x,int n) { int i; float t=1; for(i=1;i<=n;i++) t=t*x; ; }main( ){ float x,y; int n; scanf("%f,%d",&x,&n); y=power(x,n); printf("%8.2f",y) ;}

以下程序实现了计算x的n次方,请将程序填写完整。float power(float x,int n) { int i; float t=1; for(i=1;i<=n;i++) t=t*x; ; }main( ){ float x,y; int n; scanf("%f,%d",&x,&n); y=power(x,n); printf("%8.2f",y) ;}

发布时间:2025-12-08 20:07:00
推荐参考答案 ( 由 快搜搜题库 官方老师解答 )
联系客服
答案:return t
专业技术学习
专业技术学习
搜搜题库系统