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
What is c-sharp (c#)?
What is serialization of data?
How do generics work in c#?
what are the Disadvantages of vb
What are PE(Portable Executable)?
What is the use of console readkey ()?
What is the use of thread join in c#?
What is _layout cshtml?
What is difference between yielding and sleeping?
Differentiate between the public and private ?
How can I make sure my c# classes will interoperate with other .net languages?
What is private readonly in c#?
What is the difference between disposing of () and finalize() methods in c#?
What are extensions methods in c#?
What is the use of convert toint32 in c#?