Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 bytes is an int c#?

883


Illustrate the differences between the system.array.copyto() and system.array.clone()?

993


What is console readkey ()?

959


What are the Uses of CLR

1227


What is static void main in c#?

1016


How more than one version of an assembly can keep in same place?

975


What do you mean by hashtable c#?

1021


What are assemblies?

948


What is the purpose of escape sequence?

1022


What is arraylist?

1011


What is the difference between system.text.stringbuilder and system.string?

1025


What is data adapter in c#?

883


What is the difference between abstraction and encapsulation in c#?

952


What is the use of table aliases?

915


How do generics work in c#?

909