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