输入一个整数,将其每位剥离,并记录在一个数组中,此时每位数即是逆序排列的。include <stdio.h>#define ARRAY_LEN 100 /*数组长度*/void numToDigit (int num, int arr[]) { /*将数字按位剥离并存储在数组中,该算法剥离出的每位数即是逆序排列的*/int i,j,n;for (i = 0, n = num...
include<iostream> usingnamespacestd;intmain(){ intoriginal,key,result=0;cout<<"PleaseEntertheNumber:"<<endl;cin>>original;do { key=original%10;if(key==0){ cout<<"NewNumberis0"<<original;//original=(original-key)/10;} else { result=key+result*10;//result需要移位 original=...