VB.Net Program to Print Backslash (\) Character on the Console Screen

VB.Net program to print backslash (\) character on the console screen

'VB.Net program to print backslash (\) character 
'on the console screen.

Module Module1
    Sub Main()
        'printing "\" 
        Console.WriteLine("\\")

        'printing between the string "\"
        Console.WriteLine("Hello\\World")

        'printing "\"n and "\"t
        Console.WriteLine("\\n\\t")

        'hit ENTER to exit the program
        Console.ReadLine()
    End Sub

End Module

Output

\\
Hello\\World
\\n\\t
Share on:

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 Comment