Mar-03-2021, 12:29 PM
You need an outer loop to repeat the cracking code foor each digit of the 4 digit code. Break will do exactly what you want for the "inner" loop, ending the search for a digit and moving on to the next.
How to break out of nested loops
|
|
Messages In This Thread |
How to break out of nested loops - by pace - Mar-03-2021, 10:33 AM
RE: How to break out of nested loops - by deanhystad - Mar-03-2021, 12:29 PM
RE: How to break out of nested loops - by pace - Mar-03-2021, 02:11 PM
RE: How to break out of nested loops - by deanhystad - Mar-03-2021, 03:10 PM
RE: How to break out of nested loops - by pace - Mar-03-2021, 04:08 PM
RE: How to break out of nested loops - by deanhystad - Mar-03-2021, 04:42 PM
RE: How to break out of nested loops - by pace - Mar-03-2021, 05:00 PM
RE: How to break out of nested loops - by deanhystad - Mar-03-2021, 05:12 PM
RE: How to break out of nested loops - by pace - Mar-03-2021, 05:16 PM
RE: How to break out of nested loops - by deanhystad - Mar-03-2021, 05:28 PM
RE: How to break out of nested loops - by deanhystad - Mar-03-2021, 05:33 PM
RE: How to break out of nested loops - by pace - Mar-03-2021, 06:25 PM
|