永发信息网

C语言高手,编写函数mypow,求整型变量x的y次方。(要求包括能使程序正常运行的主函数)

答案:2  悬赏:70  手机版
解决时间 2021-03-05 09:13
  • 提问者网友:龅牙恐龙妹
  • 2021-03-05 04:03
C语言高手,编写函数mypow,求整型变量x的y次方。(要求包括能使程序正常运行的主函数)
最佳答案
  • 五星知识达人网友:woshuo
  • 2021-03-05 04:28
mypow(a;
void main()
{
int a;
printf(&quot.h>
#include &lt#include
int mypow(int x,int y);stdlib.h>
}
int mypow(int x,int y)
{
int i,z=1;
for(i=0,b,&b);mypow(%d,%d)=%d\,b)),a;,a,b),b;n";
printf("a=%d,b=%d\n"
scanf("%d;,&a,%d"
#include {
z*=x
全部回答
  • 1楼网友:鸠书
  • 2021-03-05 05:53
期待看到有用的回答!
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯