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 code for palindrome?

Answer Posted / irfan khan

string s1="";
string s2="";
int len=s1.length;
for(int i=0;i<len-1;i++)
{
s2=s1.substring[i]+s2;
console.writeline(s2);
}
if(strcmp(s1,s2)==0)
{
console.writeline("given sting is palindrome");
}
else
console.writeline("not palindrome");

Is This Answer Correct ?    12 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does a class need a constructor c#?

952


What is a c# delegate?

1128


What is the property of class?

1136


Is a valid int value?

969


Can int be null c#?

960


What is a delegate how is it type safe?

914


What is the major difference between a custom control and user control?

1105


What is the use of table aliases?

963


What is an indexer in c#?

1016


How Is The Dll Hell Problem Solved In .net?

1069


Why main is static in c#?

1091


What is gac? How to put assembly in gac?

1048


What is the root element of an xml file?

919


Contrast System.String and System.Text.StringBuilder classes?

1039


What is hashtable in c# net with example?

998