Int main ()
{
int a;
Int b;
Int c;
Int d;
Int e;
The scanf (" % d ", & amp; a);
B=a/100;
C=a % 10;
D=(a % 100)/10;
E=(a % 10) * 100 + (a % 100)/10 * 10 + a/100;
Printf (" % d \ n ", e);
return 0;
}
CodePudding user response:
What's the problemCodePudding user response:
# include & lt; stdio.h>
Int reverse_third_num (int num);
Int main ()
{
int a;
Int b;
Int c;
Int d;
Int e;
The scanf (" % d ", & amp; a);
Reverse_third_num (a);
B=a/100;
C=a % 10;
D=(a % 100)/10;
E=(a % 10) * 100 + (a % 100)/10 * 10 + a/100;
Printf (" % d \ n ", e);
return 0;
}
Int reverse_third_num (int num)
{
Int re_num=0;
While (num) {
Re_num=re_num 10 * 10 + num %;
Num/=10;
}
Printf (" re_num=% d \ n ", re_num);
Return re_num;
}
For your reference ~