Saturday, January 21, 2012

For Loop VB.NET / C#

This time i leave another very usefull loop, the "For Loop", in both VB.NET and C#.
Enjoy.


C#:
  for (int i = 0; i <= 5; i++)
  {
     //Do your code here
  }


VB.NET:
  Dim i As Integer
  For i = 0 To 5
      'Do your code here
  Next i
 

No comments:

Post a Comment