Sep-29-2020, 01:54 AM
You haven't made it very clear what you are expecting in terms of output, but a couple of things look problematic:
- Your
for
loop on line 12 doesn't serve any purpose since thebreak
on line 15 means that lines 13-14 only execute a single time. Do you need to break there?
- If you intend for any of lines 17+ to be within your loop, you need to indent them appropriately (while also deciding what to do with that
break
on line 15).