{ "question_id": 227612, "question_title": "用递归实现任意的正整数按反序输出", "question_content": "编写一个递归函数,将任意的正整数按反序输出。例如,输入\"12345\"输出\"54321\"", "difficulty": "简单", "answer_id": 192049, "answer_content": "\n\n```\n #include \nusing namespace std;\n\nvoid revert(int n)\n{\n if ( n>= 0 && n<= 9 )\n {\n cout<\nusing namespace std;\nvoid revert(int n)\n{\n\tif ( n>= 0 && n<= 9 )\n\t{\n\t\tcout<