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
Can you have an array of arrays?
what are the different ways a method can be overloaded?
What is an interface class in c#?
Are tuples mutable c#?
Can a class have static constructor?
How do I create a multi language, multi file assembly?
Why do we use struct in c#?
What are primitive data types in c#?
What is datarelation c#?
Do void methods have parameters?
What is a view? What is the use of it?
What is void in c#?
List some of the common data providers for ado.net framework?
What is difference between dll and exe in c#?
What is a string in c#?