using system;
public class scopetest
{
public static int main()
{
for(int i=0;i<10;i++)
{
console.writeline(i);
} //i goes out of scope here
//u should can be declare a variable named i again,because
//theres no other variable with that name in scope
for(int i=9;i>=0;i–)
{
console.writeline(i);
} //i goes out of scope here
return 0;
}
}