Ameer Wadi

Ameer Wadi

  • NA
  • 5
  • 602

Variable defined within "for" loop can't be called outside

Jan 15 2018 5:43 PM
Hi everyone;
 
I'm just a beginner with C#. When I define a variable inside for loop, it can't be recognized afterwards, as it has been NOT defined within the code. Following picture shows the problem. (Code should work properly but its NOT)
 
 
Thanks in advance,

Answers (2)