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 bytes is an int c#?
Illustrate the differences between the system.array.copyto() and system.array.clone()?
What is console readkey ()?
What are the Uses of CLR
What is static void main in c#?
How more than one version of an assembly can keep in same place?
What do you mean by hashtable c#?
What are assemblies?
What is the purpose of escape sequence?
What is arraylist?
What is the difference between system.text.stringbuilder and system.string?
What is data adapter in c#?
What is the difference between abstraction and encapsulation in c#?
What is the use of table aliases?
How do generics work in c#?