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
How do I use void main?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
What do you mean by command line argument?
What are integer variable, floating-point variable and character variable?
Explain what is the benefit of using const for declaring constants?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
What is the easiest sorting method to use?
Explain zero based addressing.
What is a char in c?
how is the examination pattern?
Write a program to print factorial of given number using recursion?
How can I implement sets or arrays of bits?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
What is the meaning of c in c language?