C Program to Convert Decimal to Octal Number

In the series of Number System Conversion, today I am going to share another c program which will convert the decimal number to octal number using c programming language with an example with the output.

C Program to convert decimal to octal number

Copy the below c program and execute it with the help c compiler. Below program will take input as a decimal number and convert into the octal number.

Output

Enter the decimal number : 20
Octal number : 24

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , , , , , , ,