Deduce what has to be done in this problem by looking at the input-output examples.
The input has several cases. Each one consists of a single digit in one line.
For each case from the input, the output has a
string in a new line. Deduce the expected
string for each
from the examples.
The solution for this exercise must be recursive. You can either make a recursive function which directly prints the string on the output, or a function that returns the string and it is the main program who prints it. You can use a loop in the body of the function, if you wish, but the general solution must be recursive.
Author: PRO1
Generation: 2026-01-25T22:10:09.364Z
© Jutge.org, 2006–2026.
https://jutge.org