Skip to content

Instantly share code, notes, and snippets.

@bradjohansen
Created April 29, 2010 22:35
Show Gist options
  • Save bradjohansen/384384 to your computer and use it in GitHub Desktop.
Save bradjohansen/384384 to your computer and use it in GitHub Desktop.
class Palindrome
{
/// <summary>
/// Gets an input from user and checks to see if it is a palindrome.
/// </summary>
public static string Tester(string input)
{
if (input == StringHelper.ReverseString(input))
{
Console.Write(input); Console.Write(" is a Palindrome.");
}
else
{
Console.Write(input); Console.Write(" isn't a Palindrome.");
}
return input;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment