编辑代码

#include <stdio.h>
int main(void)
{
    int x;
    printf("输入一个五位的正整数x:");
    scanf("%d",&x);
    int a,b,c,d,e;
    a=x/10000;
    b = x / 1000 - 10* a;
    c = x / 100 - a * 100 - b * 10;
    e = x % 10;
    d =( x % 100 - e ) / 10;

    printf("%d\n",a+b*10+c*100+d*1000+e*10000);
    return 0;
}