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

what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question

6 Answers  


What does 4d mean in c?

0 Answers  


What are the 4 types of organizational structures?

0 Answers  


Describe the header file and its usage in c programming?

0 Answers  


in a town the percentage of men is 52 the percentage of total literacy is 48 if total percentage of literate men is 35 of the total population write a program to find the total no of the literate men and women if the population of the town is 80000

3 Answers  






What are the different types of errors?

0 Answers  


what will be the output for the following program? main() { char ch = 'k'; char c; printf("%c",c); }

3 Answers  


the maximum width of a c variable name can be a) 6 characters b) 8 characters c) 10 characters d) 20 characters

2 Answers  


how to get the starting address of file stored in harddisk through 'C'program.

2 Answers   Siemens,


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]

0 Answers   Infosys,


Explain built-in function?

0 Answers  


What is graph in c?

0 Answers  


Categories