Function to convert decimal value to equivalent octal value
static int Octal ( int decima ) { int octal = 0 ; String temp = " " ; while ( decima > 0 ) { int remainder = decima % 8 ; temp = remainder + temp ; decima /= 8 ; } for ( int i = 0 ; i < temp . Length ; i ++ ) octal = ( octal * 10 ) + ( temp [ i ] - '0' ) ; return octal ; }