Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# for loop backwards

int[] myarray = new int[]{1,2,3,4};
for(int i = myarray.Length - 1; i >= 0; i--)
{
	Console.WriteLine(i);
}
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
3+2 =