This is also pretty easy.
Algrorithm
Accept octal number
Apply octal to binary algorithm
Binary to hexa decimal algorithm
Display value.
Click here to see the code
Click here to see the output