I\'m writing a program that finds passwords. I ran into a problem when I saw that the \"for\" loops to replace parts of the password would have to be repeated for the variab
You do not need to repeat the for loop. Instead you need to nest it. The most inviting solution to implement this is a recursive construct.
Pseudo code:
void nestloop(int depth, int width) { if(depth>0) { int i; for (i=0; i