R
Rich P
Basic question: if I need to increment a for loop by step 2 (or step 3,
step 4, ...) -- in VB I say this:
For i = 0 To 10 Step 2
Debug.Print i
Next
Is there an equivalent for C# what does that look like? If there is no
equivalent would I have to do something like this (for the same
example):
for (int i = 0; i < 5; i++)
Console.WriteLine(i * 2)
Rich
step 4, ...) -- in VB I say this:
For i = 0 To 10 Step 2
Debug.Print i
Next
Is there an equivalent for C# what does that look like? If there is no
equivalent would I have to do something like this (for the same
example):
for (int i = 0; i < 5; i++)
Console.WriteLine(i * 2)
Rich