int function(int num)
{
int result = num % 10;
while (num /= 10) {
result = result * 10 + num % 10;
}
return result;
}
int function(int num)
{
int result = num % 10;
while (num /= 10) {
result = result * 10 + num % 10;
}
return result;
}
本文标题:32位整数翻转
本文链接:https://www.haomeiwen.com/subject/gahmoctx.html
网友评论