VB.Net/Language Basics/Variable

Материал из VB Эксперт
Перейти к: навигация, поиск

Multiply the numbers and display the results

<source lang="vbnet"> Imports System Public Class MainClass

   Shared Sub Main()
       "Declare variables and set their values
       Dim intX As Integer = 5
       Dim intY As Integer = 10
       "Multiply the numbers and display the results
       System.Console.WriteLine("The sum of " & intX & " * " & intY & " = " & _
           intX * intY)
   End Sub

End Class

      </source>