VB.Net Program to Perform BITWISE AND Operation

You are currently viewing VB.Net Program to Perform BITWISE AND Operation

VB.Net program to perform BITWISE AND operation

'VB.Net program to perform "BITWISE AND" operation.

Module Module1

    Sub Main()
        Dim num1 As Integer = 3
        Dim num2 As Integer = 2
        Dim res As Integer = 0

        res = num1 And num2

        Console.WriteLine("Result: " + res)

        Console.ReadLine()
    End Sub

End Module

Output

Result: 2

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