如题所述
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{ int a,b=0;
srand(time(0));
a=rand()%90000+10000;
printf("%d\n",a);
for(; a; a/=10)
b=b*10+a%10;
printf("%d\n",b);
return 0;
}