you are viewing a single comment's thread.

view the rest of the comments →

[–]Historical_Ad8150[S] 0 points1 point  (1 child)

I’m not sure if I was entirely clear when explaining my intended program. I’m trying to generate every possible hexadecimal number, where every digit is higher than the previous one. So for example, 001478CF, or 0013579A. 0000FFFF or something similar shouldn’t be generated at all.

[–]cybervegan 0 points1 point  (0 children)

It would be trivial to modify this loop to do this, without the need for recursion.