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 do you prevent a method from being overridden in c#?
What is the usage of transponders?
What are the Types of compatabilities and explain them
What is throw in c#?
What is the default value of date?
What is entity framework c#?
What is a decimal in c#?
Why do we use lambda expression in c#?
who is a protected class-level variable available to?
how to stored and retrive video in Sql server using asp.net c#......?
What is a byte in c#?
What is a property c#?
How do I unload an assembly?
What is the use of static in c#?
How many classes are there in classification?