📜  反转数字 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:37.894000             🧑  作者: Mango

代码示例2
#include
int main(){
    int n=23450;
    int rev_num = 0;
    while(n!=0){
      rev_num = rev_num * 10 + n%10;
      n = n/10;
    }
    printf("%d", rev_num);
}