Cannot believe that I’m writing some helpful examples using VB.Net, but that is the language that we’re using at work, so have to adapt now. Next find how to make a loop with a negative step (decreasing step):
Imports System Public Class MainClass Shared Sub Main() For intCount As Integer = 10 To 1 Step -1 'Add the item to the list System.Console.WriteLine(intCount) Next End Sub End Class
5 Responses
lingwa with balls of steel m8 😀
Istja ndunajt li int!! 🙂 Ara biex nghid il-verita.. m’ghadux idejjaqni daqs qabel il-VB… but still… C# RULEZZ!!
🙂
C# 4 ever! :o)
… and C/C++ of course!!
I agree 100% :)… As long as the language starts with C, and has 1 character only or has symbols after it… I like it!!