Answer Posted / darshana
Dim num As String
Dim ch() As Char
Dim ch1() As Char
Console.WriteLine("enter the number")
num = Console.ReadLine()
ch = num.ToCharArray
ch1 = num.ToCharArray
' For i As Integer = 0 To ch.Length - 1
Array.Reverse(ch)
If ch = ch1 Then
Console.WriteLine("palindrome")
Else
Console.WriteLine("not palindrome")
End If
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
What is a pointer in c plus plus?
What are file streams?
Write a program to reverse a given number in c language?
How do you determine a file’s attributes?
What is the use of bitwise operator?
Tell us bitwise shift operators?
write a proram to reverse the string using switch case?
How can I do serial ("comm") port I/O?
What is the process of writing the null pointer?
Which is more efficient, a switch statement or an if else chain?
What are the preprocessor categories?
What is void main () in c?
What is the purpose of sprintf?
What is ctrl c called?