#include<iostream>
#include<string>
#include<math.h>
using namespace std;
void intToString(int nInput)
{
int nInt;
if(nInput!=0)
{
nInt = nInput % 10;
nInput = nInput / 10;
cout<<nInt;
intToString(nInput);
}
}
int main()
{
int nInput;
while(cin>>nInput)
{
intToString(nInput);
}
return 0;
}
华为机试-数字颠倒
最新推荐文章于 2024-10-04 17:36:04 发布