02-10-2023, 09:45 PM
(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.