Write a program to find weather the given String is a Palindram or not

A palindrome is a word, phrase, number, or other sequence of symbols or elements, whose meaning may be interpreted the same way in either forward or reverse direction.
VB Script code to check if a string is a palindrome or not and for palindrome number. This program works as follows: - at first we copy the entered string into a new string, and then we reverse the new string and then compares it with original string. If both of them have same sequence of ASCII Values then the entered string is a palindrome otherwise entered string is not a palindrome.

 In this case VB Script program will be as shown:


Out Put Of the Above Program





No comments:

Post a Comment