C program to convert number from Octal to Decimal
In this program, we will read Octal Values and converts it into Hexadecimal Number System. This program is for Octal to Decimal Conversion in C.
The logic behind to implement this program - Access each digit from the Number multiply the digit by the power of 8 (for first digits from right side multiply digit with 8^0, second digits 8^1 and so on), add the result and finally you will get Decimal value of given Octal Number. Here we will multiply with the power of base and base of Octal Number is 8.