//记录自己自学C语言的过程之路,来自Do_mao183.
#include<stdio.h>
int Invert(int n)
{
int inv = 0;
while(n!=0)
{
inv = inv*10 + n%10;
n /= 10;
}
return inv;
}
int main()
{
int n;
int inv;
printf("请输入一个长数:");
scanf("%d",&n);
inv = Invert(n);
printf("按位逆置结果为%d",inv);
return 0;
}