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
Where do I put dll files?
What is anonymous class in c#?
How many types of polymorphism are there?
What is string method in c#?
What is reference types in c#?
How do you use nullable?
What is multidimensional array in c#?
What is Implicit conversion in C#?
Which is executed if an exception has not occurred?
What are boxing and unboxing?
What is asax file in c#?
What is the difference between static and private constructor?
Why do we need nullable types in c#?
In dynamic link library, which api is used for load library?
What is a console application in c#?