Recursion - digits in reverse order

前端 未结 15 1063
一向
一向 2021-01-15 10:32

I need to implement a recursive method printDigits that takes an integer num as a parameter and prints its digits in reverse order, one digit per line.

This is what

15条回答
提交回复
热议问题