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


Please Help Members By Posting Answers For Below Questions

How many types of polymorphism are there?

508


How many types of constructor are there in c#?

486


Which language is used for desktop application?

493


What do you mean by jagged arrays in c#?

493


What are the types of parameters in c#?

540






What is jit? What are the different types of jit?

580


What is extension method in c# and how to use them?

478


What is inumerable?

577


Do loops in c#?

510


What is Assembly. and Describe type of assembly. why most developer happy with private assembly.

587


Which class comes after the SortedList class?

574


Is std :: string null terminated?

498


What Is The Difference Between The System.array.copyto() And System.array.clone()?

543


What are the properties of a string class?

521


What is the difference between interface and inheritance in c#?

484