大家看一下我的代码,错误在哪里?
int A;main()
{
int power(int);
int b=3,c,d,m;
printf("enter the number a and its power m:\n");
scanf("%d,%d",&A,&m);
c=A*b;
printf("%d*%d=%d\n",A,b,c);
d=power(m);
printf("%d**%d=%d",A,m,d);
}
extern A;
power(int n);
{int i,y=1;
for(i=1;i<=n;i++)
y*=A;
return(y);
}