这程序哪错了
#include<stdio.h>#include<math.h>
int resave(int nuber);
int main(void)
{
int number,num;
printf("Enter a number:");
scanf("%d",&number);
num=resave(number);
printf("%d\n",num);
return 0;
}
int resave(int number)
{
int i,count,n,result;
count=0;
while(number!=0){
number=number/10;
count++;
}
result=0;
n=count-1;
for(i=n;i>=0;i--){
result=result+(number%10)*pow(10,i);
number=number/10;
}
return result;
} 输入一个数 并反回它的倒序数,如输入12345返回54321,要求调用返回函数resave(number)*/