print the palindrome numbers in between 0 to n



print the palindrome numbers in between 0 to n..

Answer / 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

More C Interview Questions

write a program to delete an item from a particular location of an linear array?

1 Answers  


Write a program for finding factorial of a number.

0 Answers   Tech Mahindra,


WAP to find that given no is small or capital

3 Answers  


Can true be a variable name in c?

0 Answers  


Why the use of alloca() is discouraged?

2 Answers   Oracle,






7. Identify the correct argument for the function call fflush() in ANSI C: A)stdout B)stdin C)stderr D)All the above

10 Answers   Accenture,


c program to compute AREA under integral

0 Answers   Infosys,


Where can I get an ansi-compatible lint?

0 Answers  


what is the use of c program?

4 Answers   Synergy, Web Synergies,


Is sizeof a keyword in c?

0 Answers  


Write a program to generate random numbers in c?

0 Answers  


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

0 Answers  


Categories