Write a Vb.net program to check whether entered string is palindrome or not.
Slip No 1
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim s As String
Dim r As String
s = TextBox1.Text
r = StrReverse(s)
If s = r Then
MessageBox.Show("Enterd String is Palindrome")
Else
MessageBox.Show("Enterd String is Not Palindrome")
End If
End Sub
End Class
This comment has been removed by a blog administrator.
ReplyDelete