#2033. 递归实现逆序输出整数
递归实现逆序输出整数
说明
读入1个正整数,然后编写递归函数reverse(int n)实现将该正整数逆序输出。
输入格式
一行,给出1个正整数
输出格式
一行,输出的逆序数
样例
12345
54321
读入1个正整数n,然后编写递归函数reverse(int n)实现将该正整数逆序输出。
一行,给出1个正整数n
一行,输出n的逆序数
12345
54321
注册一个 HOJ 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。