When I am trying to design an algorithm , I had a programming problem in Java ..
I want to write M nested "for" like that:
for (I[0]=1; I[0]<=N; I[0]++)
for (I[1]=1; I[1]<=N; I[1]++)
...
for (I[M]=1; I[M]<=N; I[M]++)
{
Statements;
}
Where M is entered by the user during the running of the program
Is there a possible way to do it ? ( even in any programming language )