Module Module1

    Sub Main()

        Dim a As Integer = 3, i As Integer
        Console.WriteLine(vbLf & " >>VB.Net PROGRAM TO PRINT LOVE SYMBOL <<" & vbLf)
        For i = 0 To 249
            'for loop prints love symbol 250 times
        'Console.Write((char)3) 'this also prints the same

    End Sub

End Module

Output :

VB.Net Love Symbol

Explanation : Actually here we are printing the ASCII smbol of 3 . Which gives a love symbol.
you can also print directly by writing the following code.

 Console.Write(Convert.ToChar(3))  or  Console.Write(ChrW(3))


Leave a Reply

Your email address will not be published.