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

preview_player
Показать описание

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

Expected Output for the Input
User Input:
Enter an Octal Number
24

Output:
Decimal Equivalent of 24 is 20.

If user enters num = 24.

( pow(8, 1) x 2 ) + ( pow(8, 0) x 4)
= (8 x 2) + (1 x 4)
= 16 + 4
= 20
So Decimal equivalent of Octal number 24 is 20.

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert
Рекомендации по теме
Комментарии
Автор

Nice it will be good if u give the program in the discretion also

natarajsn
Автор

Do you have flowchart I have to submit it in my assignment 🥺🥺

Heet
Автор

who ashole dislike the video it is amazing video with a explanation

APOORVSAHU-rovc