program for tranform number from binary to decimal and back