Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

print the palindrome numbers in between 0 to n

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


Please Help Members By Posting Answers For Below Questions

Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

3250


What is a pointer in c plus plus?

1312


What are file streams?

1021


Write a program to reverse a given number in c language?

1121


How do you determine a file’s attributes?

1089


What is the use of bitwise operator?

1134


Tell us bitwise shift operators?

1097


write a proram to reverse the string using switch case?

2951


How can I do serial ("comm") port I/O?

1184


What is the process of writing the null pointer?

1030


Which is more efficient, a switch statement or an if else chain?

1027


What are the preprocessor categories?

1067


What is void main () in c?

1214


What is the purpose of sprintf?

1141


What is ctrl c called?

1053