Answer Posted / karthi sanjivi
class Program
{
static void Main()
{
Console.WriteLine("Please Enter Value : ");
string _strValue = Console.ReadLine();
bool res = CheckPalindrome(_strValue);
Console.WriteLine(res);
Console.ReadLine();
}
private static bool CheckPalindrome(string _strValue)
{
string _strTempValue = _strValue;
string _strRevValue = string.Empty;
char[] ch = _strTempValue.ToCharArray();
Array.Reverse(ch);
_strRevValue = new string(ch);
return (_strRevValue == _strValue);
}
}
| Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
What is _layout cshtml?
How to reduce image resolution in C#?
Does the variables of a private class-level inherited?
What is the use of ispostback in c#?
How many types of constructor are there in c#?
What is local function?
What is JIT (just in time)? how it works?
What is the advantage of singleton class?
Is an interface a type c#?
Which is the base class in c#?
What is difference between dll and exe in c#?
Are tuples immutable c#?
Can a sealed class be used as a base class?
List down the fundamental oop concepts?
What does exclamation mark mean c#?