Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why does my Loop end after 11 Loops?
#48
(02-10-2023, 07:32 PM)Dimster Wrote:  With the help you guys have provided here, my program no longer stops after 11 loops. I'm messing with stacking Recursion - computer is humming. Thanks again

The IF . . . ELSE condition is mandatory, otherwise the program goes into an endless loop!

Example: 4! (n)
If n = 1 -> No --> Else  next
If n = 1 -> No --> Else
and so on ...
At last:
If n = 1 Yes -> Finish

Now the values will be pop from the stack and output.
Reply


Messages In This Thread
Why does my Loop end after 11 Loops? - by Dimster - 02-06-2023, 07:08 PM
RE: Why does my Loop end after 11 Loops? - by Kernelpanic - 02-10-2023, 09:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Exiting sub while inside a loop PhilOfPerth 5 525 12-05-2025, 09:40 AM
Last Post: PhilOfPerth
  Do Loop, Sleep and Mouse Button Dimster 5 599 09-06-2025, 12:57 PM
Last Post: Dimster
  Using modulo to loop through lists fistfullofnails 3 727 09-03-2025, 11:50 PM
Last Post: fistfullofnails
  What is wrong with this for/next loop Helium5793 6 1,166 04-15-2025, 05:11 PM
Last Post: Kernelpanic
  Question on ln in a for/next loop Dimster 13 2,251 09-13-2024, 11:07 PM
Last Post: Kernelpanic

Forum Jump:


Users browsing this thread: