用c++知识 输入一个数,求它是几位数 在逆序输出
int main(){ int n; cin>>n; int count=0; while(n){ cout<<n%10; count ++; n/=10; } cout<<count; }