VB.Net/Language Basics/Variable

Материал из VB Эксперт
Версия от 15:42, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

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>