vc++编写程序以及它的源代码……运行结果……相关题目…谢谢了

#include <iostream>
using namespace std;
int main()
{
int x;
int r = 0,t,n=0,s=0;
cin>>x;
t=x;
cout<<"逆序为: ";
while(x != 0)
{
n+=1;
r=x%10;
s+=r;
x = x/10;
cout<<r<<" ";
}
cout<<endl;
cout<<"这个数是"<<n<<"位数"<<endl;
cout<<"这个数的各个数位之和为"<<s<<endl;
return 0;
}