|
Imports System
Imports System.Diagnostics
Public Class MainClass
Shared Sub Main()
For i As Integer = 1 To 5
Dim j As Integer = 3
If i = j Then
Dim M As Integer = i + j
Console.WriteLine("M: " & M)
Else
Dim N As Integer = i * j
Console.WriteLine("N: " & N)
End If
Dim k As Integer = 123
Console.WriteLine("k: " & k)
Next i
End Sub
End Class
|
Tags: Code, Function, Language Basics, Variable Scope, Variable Scope laquo Language Basics laquo VBNet, VB.Net
Posted in Uncategorized |
This entry was posted
on Sunday, June 28th, 2009 at 7:36 pm and is filed under Uncategorized.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.