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
Can we change static value in c#?
Explain static class members.
What does void do in unity?
What is int16?
What is boxing and unboxing in c#?
Can derived classes have greater accessibility than their base types?
Are c# generics the same as c++ templates?
what is full assembly reference
Explain different properties of object oriented systems.
What is the difference between read and readline in c#?
What is a static field?
Which is more efficient for loop or while loop?
What is a predicate in c#?
Can we overload the main method in c#?
Which language is used for desktop application?