binary to octal Algorithm

octal numerals can be made from binary numerals by grouping consecutive binary digits into groups of three (beginning from the right).The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7.

binary to octal source code, pseudocode and analysis