hi all,
i have this head breaker puzzle that i can use help in solving. I have been staring at it and trying a few hours now and my vision has become blurred.
It has to do with a loop in a loop.
i’m afraid to show one of my test codes here, because i know this is (very) bad…
Perhaps for someone this is a piece of cake?
What is my goal: create an i-rate loop.
- have ixstart loop and print it (ixstart += 1) until it has reached 5- i know this one
- then move on and add 2 to it. That makes it 7- doable as well
- go back and do this 3 times (or more)- now things start to blur…
the result should be: 1,2,3,4,5, 7,8,9,10,11, 13,14,15,16,17, …etc
(Under pressure i am willing to show my bad code)