标签:io for on amp c++ c return ca print
#include <stdio.h>
long power(int x,int n)
{
long p;
for (p=1;n>0;--n)
p*=x;
return (p);
}
void main()
{
int x,m;
printf("Enter x and m:");
scanf(%d%d",&x,&m);
printf("X power M is %ld. \n",power(x,m));
}
/*执行错误*/
标签:io for on amp c++ c return ca print
原文地址:http://www.cnblogs.com/szz-55555/p/4109691.html