I want to create a loop that that generates a random number set and gives the user the option to run the loop again for a new number. I have that working but when the loop ends the variable value does not leave the loop. I tried a posttest and pretest loop.
Is it possible to declare/create/alter a variable in a loop and have that value exit the loop to use in the code later?
I am still learning about global variables.
I have discovered if I change my variable to g_pcStr the variable can exist outside a block (block scope). I have the code doing what I want now. I am curious if there is a better method and if anyone has some advice. Thank you.