Hypercube Graph | C ++ program to find vertices in a hypercube graph of order n ; function to find power of 2 ; driver program
#include <iostream> NEW_LINE using namespace std ; int power ( int n ) { if ( n == 1 ) return 2 ; return 2 * power ( n - 1 ) ; } int main ( ) { int n = 4 ; cout << power ( n ) ; return 0 ; }