VB.Net Program to Perform the Logical AND Operation Using the Andalso Operator

You are currently viewing VB.Net Program to Perform the Logical AND Operation Using the Andalso Operator

VB.Net program to perform the LOGICAL AND operation using the AndAlso operator

'VB.Net program to perform the logical 
'"and" operation using "AndAlso" operator.

Module Module1

    Sub Main()

        Dim num1 As Integer = 6
        Dim num2 As Integer = 8

        If num1 = 6 AndAlso num2 = 8 Then
            Console.Write("Hello")
        Else
            Console.Write("Hiiii")
        End If

        Console.ReadLine()
    End Sub

End Module

Output

Hello

Ranjith Kumar

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply