Print till number without loop.

Note

Use Recursion to print.

Java

Python