I have written a for loop code and I want to assign the final answer to a variable that is out side the code so I can use it else where in the program.
I have attached the file. The value returned by k is the final answer
Solved! Go to Solution.