Program 1. Write a Vb.net program to check whether entered string is palindrome or not.

Program 1. Write a Vb.net program to check whether entered string is palindrome or not.
Solution :
'Console Based Program
Imports System.IO
Module checkPallindromString
    Sub Main()
        Dim str As String
        Console.WriteLine("Enter any string")
        str = Console.ReadLine()
        If str.Equals(str.Reverse()) Then
            Console.WriteLine("String is pallindrom")
        Else
            Console.WriteLine("String is not pallindrom")
        End If
        Console.ReadKey()
    End Sub
End Module

Run This Program



1 comment:

  1. Very Useful links please provide another programs

    ReplyDelete