C Program To Convert Decimal Number To Octal Number, using While Loop

Publicado em: 24 Janeiro 2020
no canal de: Technotip
15,250
222

http://technotip.com/7006/c-program-t...

Lets write a C program to convert a number from Decimal number system(base 10) to Octal number system(base 8), using while loop.

Expected Output for the Input
User Input:
Enter a decimal number
20

Output:
Octal equivalent of 20 is 24.

Explanation:
If user enters num = 20

We keep on dividing the number 20 by 8.

20 / 8 = 2, reminder 4.
02 / 8 = 0, reminder 2.

So Octal equivalent of decimal number 20 is 24.

C Programming Interview / Viva Q&A List
http://technotip.com/6378/c-programmi...

C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programmi...


Nesta página do site você pode assistir ao vídeo on-line C Program To Convert Decimal Number To Octal Number, using While Loop duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Technotip 24 Janeiro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 15,250 vezes e gostou 222 espectadores. Boa visualização!