Hello I need to know if it is possible to do something like this with recursion and how?
I want to be able to choose how many loops I want, for instance GenerateNumbers(x)
where x is numbers of loops I have inside.
int a, b, c;
for (a = 0; a < 10; a++)
{
printf("\n%d", a);
for (b = 0; b < 10; b++)
{
printf("\n%d%d", a, b);
for (c = 0; c < 10; c++)
{
printf("\n%d%d%d", a, b, c);
}
}
}