'string is palindrome or not
str=Inputbox ("enter string")
revstr=strreverse(str)
If str=revstr Then
msgbox "string is palindrome"
else
msgbox "string is not palindrome"
End If
str=Inputbox ("enter string")
revstr=strreverse(str)
If str=revstr Then
msgbox "string is palindrome"
else
msgbox "string is not palindrome"
End If
No comments:
Post a Comment