Write a C program to input Octal number from user and convert to Decimal number system. How to convert from Octal number system to Decimal number system in C program. Logic to convert octal to decimal number system in C programming.
Example
Input
Input octal number: 172
Output
Decimal number: 122