Jan-14-2021, 08:38 PM
you use i for index in both first and second loop, so the second loop overrides i of the first
It runs if you're lucky, but it is not going to deliver what you expect in the first loop.
you need to rename either the first or second 'i'
It runs if you're lucky, but it is not going to deliver what you expect in the first loop.
you need to rename either the first or second 'i'