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
Describe ways of cleaning up objects in c#.
What is difference between mutable and immutable in c#?
State the top.NET class that everything is derived from?
What is asp net c#?
What is difference between ienumerable and list in c#?
Name some string escape sequences in c#.
Why do we need to call CG.SupressFinalize?
What does exclamation mark mean in access query?
What is class and object c#?
I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?
How do I format in c#?
What is check/uncheck?
What is the difference between Static, Const and read only?
What is hashset c#?
What are the 3 different types of arrays?