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

Where do I put dll files?

1012


What is anonymous class in c#?

933


How many types of polymorphism are there?

946


What is string method in c#?

927


What is reference types in c#?

990


How do you use nullable?

963


What is multidimensional array in c#?

963


What is Implicit conversion in C#?

1123


Which is executed if an exception has not occurred?

958


What are boxing and unboxing?

917


What is asax file in c#?

962


What is the difference between static and private constructor?

991


Why do we need nullable types in c#?

1170


In dynamic link library, which api is used for load library?

995


What is a console application in c#?

962