Octal to Decimal
Pretty easy
Algortihm
- Accept the Octal value.
- Now create a while loop which works on the value of octal value if it is
not == 0
- Now find remainder of octal number when divide by 10.
- Now multiply it with the correct power of 8 with succesive digit seperation.
- Divide the number by 10 to shorten and remove the operated digit and thus increase
the operation.