Loops Problems
Outside of a Scope
The repeat scope in this program is the code between the start of the loop and the end block. It is important to realize that a variable defined inside a scope only exists within that scope. Run this program that tries to use a variable defined inside a different scope. Read the error and remove the block that is causing the problem.