Count of N | C ++ implementation of the approach ; Function to return the count of possible numbers ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int count ( int n ) { return pow ( 2 , n - 1 ) ; } int main ( ) { int n = 4 ; cout << count ( n ) ; return 0 ; }