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 disco?
What will a loop recorder show?
What is the and operator in c#?
Define c# i/o classes?
Define boxing and unboxing in c#?
Explain the ways to deploy an assembly?
Define acid rule of thumb for transactions in c#.
What is difference between a type and class?
Are c# references the same as c++ references?
What does mean c#?
In which format you can pass the value in the sleep function?
What is property c#?
Why do we need generics?
What is difference between method overriding and method overloading?
Write a console application and implement the ternary operator to decide whether the age a user entered after being prompted is allowed to vote or not(given that only citizens between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical input.