Count of N | C # implementation of the approach ; Function to return the count of N - digit palindrome numbers ; Driver code
using System ; class GFG { static int nDigitPalindromes ( int n ) { return ( 9 * ( int ) Math . Pow ( 10 , ( n - 1 ) / 2 ) ) ; } public static void Main ( String [ ] args ) { int n = 2 ; Console . WriteLine ( nDigitPalindromes ( n ) ) ; } }