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

What is serialization and deserialization in c# with example?

929


Explain the advantage of using system.text.stringbuilder over system.string?

937


What is a Managed Code??

1074


How many bits is int32?

1009


What is the difference between string and string in c#?

1040


What is static classes?

1005


What is difference between comparable and comparator?

953


Explain the various types of classes used in c#?

984


What is c# used for?

1095


Explain the functionalities of satellite assembly?

1020


Can you access a hidden base class method in the derived class?

956


Explain polymorphism in c# with a simple example?

986


Can you prevent a class from being instantiated?

1050


What is the use of iqueryable in c#?

929


What is join in c#?

979