program to print binary sequence of a number