#include using namespace std;void huiwen(int n);int main(){\x05int n;\x05coutn;\x05huiwen(n);\x05return 0;}void huiwen(int n){\x05int x,y;\x05x=n;\x05y=0;\x05while(x!=0)\x05{\x05y=y*10+x%10;\x05x=x/10;\x05}\x05if(y==n)\x05\x05cout
来源:学生作业帮助网 编辑:作业帮 时间:2024/09/03 05:04:35
![#include using namespace std;void huiwen(int n);int main(){\x05int n;\x05coutn;\x05huiwen(n);\x05return 0;}void huiwen(int n){\x05int x,y;\x05x=n;\x05y=0;\x05while(x!=0)\x05{\x05y=y*10+x%10;\x05x=x/10;\x05}\x05if(y==n)\x05\x05cout](/uploads/image/z/552912-24-2.jpg?t=%23include+using+namespace+std%3Bvoid+huiwen%28int+n%29%3Bint+main%28%29%7B%5Cx05int+n%3B%5Cx05coutn%3B%5Cx05huiwen%28n%29%3B%5Cx05return+0%3B%7Dvoid+huiwen%28int+n%29%7B%5Cx05int+x%2Cy%3B%5Cx05x%3Dn%3B%5Cx05y%3D0%3B%5Cx05while%28x%21%3D0%29%5Cx05%7B%5Cx05y%3Dy%2A10%2Bx%2510%3B%5Cx05x%3Dx%2F10%3B%5Cx05%7D%5Cx05if%28y%3D%3Dn%29%5Cx05%5Cx05cout)
#include using namespace std;void huiwen(int n);int main(){\x05int n;\x05coutn;\x05huiwen(n);\x05return 0;}void huiwen(int n){\x05int x,y;\x05x=n;\x05y=0;\x05while(x!=0)\x05{\x05y=y*10+x%10;\x05x=x/10;\x05}\x05if(y==n)\x05\x05cout
#include
using namespace std;
void huiwen(int n);
int main()
{
\x05int n;
\x05coutn;
\x05huiwen(n);
\x05return 0;
}
void huiwen(int n)
{
\x05int x,y;
\x05x=n;
\x05y=0;
\x05while(x!=0)
\x05{
\x05y=y*10+x%10;
\x05x=x/10;
\x05}
\x05if(y==n)
\x05\x05cout
#include using namespace std;void huiwen(int n);int main(){\x05int n;\x05coutn;\x05huiwen(n);\x05return 0;}void huiwen(int n){\x05int x,y;\x05x=n;\x05y=0;\x05while(x!=0)\x05{\x05y=y*10+x%10;\x05x=x/10;\x05}\x05if(y==n)\x05\x05cout
%10取末位,/10去掉末位,就这么简单,自己观察程序