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 an escape sequence in c#?
What is nameof c#?
What is the difference between ienumerable and icollection?
Explain how to add controls dynamically to the form using c#.net.
Where value types are stored in c#?
Is 0 an unsigned integer?
Write a program in c# to find the angle between the hours and minutes in a clock?
Okay, so an int is a value type, and a class is a reference type. How can int be derived from object?
What is the C# syntax to catch any possible exception?
Can you change the value of a constant filed after its declaration?
What all details the assembly manifest will contain?
Does c# support c type macros?
Is javascript harder than c#?
What is reflection in c#?
What is interface c#?