Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- namespace PalindromeIntegers
- {
- class Program
- {
- static void Main(string[] args)
- {
- string input;
- while ((input = Console.ReadLine()) != "END")
- {
- Console.WriteLine(PalindromeChecker(input));
- }
- }
- static bool PalindromeChecker(string str)
- {
- char[] rev = str.ToCharArray();
- Array.Reverse(rev);
- return str.Equals(new string(rev));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement