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
Is static thread safe?
What are events in C#?
What are custom attributes in c#?
What is delegates in c# and uses of delegates?
What is .net console?
Does c# have functions?
the c# keyword .int. Maps to which .net type?
Illustrate the process of code compilation in c#?
How is a string immutable?
What is the difference between an application domain and a process?
Is string nullable in c#?
What is CLR and its application.?
What is a property in c#?
Why data types are important in c#?
What is value c#?