Create map between binary and its equivalent octal code
Dictionary < string , char > bin_oct_map = new Dictionary < string , char > ( ) ; bin_oct_map . Add ( "000" , '0' ) ; bin_oct_map . Add ( "001" , '1' ) ; bin_oct_map . Add ( "010" , '2' ) ; bin_oct_map . Add ( "011" , '3' ) ; bin_oct_map . Add ( "100" , '4' ) ; bin_oct_map . Add ( "101" , '5' ) ; bin_oct_map . Add ( "110" , '6' ) ; bin_oct_map . Add ( "111" , '7' ) ; int i = 0 ; string octal = " " ; while ( true ) {