.NET Practical Slip 19 Q A

2. Slip-1 Problem Statement

Q. Write a C#.Net program to accept and display ‘n’ customer’s details such as customer_no, Name, address, item_no, quantity, and price. Display the total price of all items. 25 Marks

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
Spread the love

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top