#include "stdafx.h" #include "math.h" #include using namespace std; void f (int n) { int* b= new int [n]; int j=0; while (n!=0) { b[j++]=n%2; n=n/2; } for (int i=j-1; i>=0; i--) cout<>n; if (n>0) f(n); }