write program in C# for palindrome? (aug 2009)
write program in C3 for generating below output?(aug 2009)
#
# #
# # #
# # # #
Answer Posted / elan
string sName = "elan";
char[] aName = sName.ToCharArray();
Array.Reverse(aName);
string sReversedName = new string(aName);
if (sName == sReversedName)
{
MessageBox.Show("it is palindrome");
}
else
{
MessageBox.Show("it is not palindrome");
}
Is This Answer Correct ? | 25 Yes | 10 No |
Post New Answer View All Answers
How many types of polymorphism are there?
How many types of constructor are there in c#?
Which language is used for desktop application?
What do you mean by jagged arrays in c#?
What are the types of parameters in c#?
What is jit? What are the different types of jit?
What is extension method in c# and how to use them?
What is inumerable?
Do loops in c#?
What is Assembly. and Describe type of assembly. why most developer happy with private assembly.
Which class comes after the SortedList class?
Is std :: string null terminated?
What Is The Difference Between The System.array.copyto() And System.array.clone()?
What are the properties of a string class?
What is the difference between interface and inheritance in c#?