#include<stdio.h> int main(){ long int octalNumber; printf("Enter any octal number: "); scanf("%o",&octalNumber); printf("Equivalent decimal number is: %d",octalNumber); return 0; }
Filled Under
C
C program to change octal to decimal
Related:

C code for fractional binary to decimal converter

C code for product of two binary numbers

C code for sum of two binary numbers:

How to convert large binary number to hexadecimal

C code for binary to decimal conversion

C code for how to convert large binary to octal

C program to convert binary to octal

C program for hexadecimal to binary conversion
Subscribe to:
Post Comments (Atom)