Find the count of natural Hexadecimal numbers of size N | C # implementation of the approach ; Function to return the count of n - digit natural hexadecimal numbers ; Driver code
using System ; class GFG { static int count ( int n ) { return ( int ) ( 15 * Math . Pow ( 16 , n - 1 ) ) ; } public static void Main ( String [ ] args ) { int n = 2 ; Console . WriteLine ( count ( n ) ) ; } }