Is there a way to write something like this with a single (while-) loop?
for(int a = 0; a < u; a++)
    for(int b = a; b < u; b++)
        for(int c = b; c < u; c++)
           .
              .
                 .
                    for(int <n> = <n-1>, <n> < u; <n>++) {
                       // work
                    }
Usually I use recursion if I need something like this, so I guess it could be done with a stack but I would prefer a solution without stack (if it is possible).
Thank you in advance!
 
    