答案:
#include <iostream>
using namespace std;
int main()
{
int num,s,sum=0,count=0;
cout<<"Please input num:";
cin>>num;
cout<<"the num is "<<num<<endl;
if(num<0||num>100000)
{
cout<<"The entered num is wrong. Please enter a num in the range of 0-100000";
}
else
{
while(num!=0)
{
s=num%10;
num=num/10;
sum=sum*10+s;
count++;
cout<<"The order of each is "<<s<<endl;
}
cout<<"the reverse num is "<<sum<<endl;
cout<<"the num have "<<count<<endl;
}
cout<<endl;
return 0;
}