Given M integers (N1, N2, Nm), I want to write a N-level embedded loop like following :
for (int a = 0; a < N1; a++) for (int b = 0; b < N2; b++)
How about using recursive:
int recursive_loop(int var_M){ if(var_M == destination) return 0; else{ for(int i=0;i
I tested with C , it work.