Multiply the numbers and display the results : Variable « Language Basics « VB.Net






Multiply the numbers and display the results

Multiply the numbers and display the results
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

           
       








Related examples in the same category