Dot Net Framework
A)
Write a VB.NET program to check whether enter string is palindrome or not.
Answer :
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim str, rev As String
str = TextBox1.Text
rev =
StrReverse(str)
If (str = rev) Then
MessageBox.Show("String is Palindrome : " & str)
Else
MessageBox.Show("String is Not Palindrome : " & str)
End If
End Sub
End Class
Output :
B)
"How is the book ASP.NET with C# by Wrox publication?"
Give the user three choices :
i)Good ii)Satisfactory iii)Bad.
Provide
a VOTE button. After user votes, present the result in percentage using labels
next
to the choices.
Answer :
Output :
No comments:
Post a Comment