Find the count of natural Hexadecimal numbers of size N | C ++ implementation of the above approach ; Function to return the count of n - digit natural hexadecimal numbers ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int count ( int n ) { return 15 * pow ( 16 , n - 1 ) ; } int main ( ) { int n = 2 ; cout << count ( n ) ; return 0 ; }