📜  c recursion func revers number - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:43.301000             🧑  作者: Mango

代码示例1
int ReversNum(int num)
{
    if(num % 10 == num) return num;
    
    int tenP = 10;
    while(num % (tenP*10) != num) tenP *= 10;
    
    return rReversNum( num / 10) + (num % 10)*tenP;
}