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
Which is faster hashtable or dictionary?
How does yield return work c#?
What is c# used for in the industry?
Is var a data type?
Why is static constructor called first?
How to use the sreamReader class to read form a text file?
Describe the difference between inline and code behind - which is best?
In a memory when you Box and Unbox a value-type what happens?
What is parseexact c#?
What is Event - Delegate?
Why do we use Design Pattern in C#?
How Reflection is used and what it's significance ?
What is deadlock in c#?
What is a c sharp?
What is overriding in c#?