I have trouble writing a recursive function in C:
void func(int n)
which for a given number n prints “1” and n zeroes after it.
for example:
func(3);
prints: 1000
func(5);
prints: 100000
No global variables (outside the function) are allowed and argument count must not be increased. No other helper functions allowed.
1 Answer