Nth Even length Palindrome | C # program to find nth even length Palindrome ; Function to find nth even length Palindrome ; string r to store resultant palindrome . Initialize same as s ; In this loop string r stores reverse of string s after the string s in consecutive manner ; Driver code ; Function call
using System ; class GFG { static string evenlength ( string n ) { string res = n ; for ( int j = n . Length - 1 ; j >= 0 ; -- j ) res += n [ j ] ; return res ; } public static void Main ( ) { string n = "10" ; Console . WriteLine ( evenlength ( n ) ) ; } }