Answer Posted / bikas pandey
using System;
namespace PalindromeChecker
{
class Palindrome
{
public static void Main(strin[] args)
{
string ename="anna";
Char[] array=ename.ToCharArray();
Array.Reverse(array);
String reversename=new String(array);
if(ename==reversename)
{
Console.WriteLine("It's A Palindrome");
}
else
{
Console.WriteLIne("It's Not A Palindrome");
}
Console.ReadLine();
}
}
}
| Is This Answer Correct ? | 11 Yes | 11 No |
Post New Answer View All Answers
While debugging a C# application can you change the value of a variable?
What is Delegate and what is it used for ?
Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?
What is difference between a type and class?
What are the collection types can be used in c#?
Why we use extension method in c#?
Why is lazy loading?
Explain about ODP.net
What is the difference between c and c sharp?
what is virtual method in c#?
What is difference between ienumerable and list in c#?
What are the Types of instancing properties and explain each. Explain the difference between multiuse,singleuse and globalmultiuse and which is default
Is c# used for any core features of windows vista?
Can we have 2 main methods in c#?
What is value c#?