C++ Program to convert Octal to decimal number using while loop.

By Prof. Fazal Rehman Shamil

C++ Program to convert Octal to decimal number using while loop.

Flowchart to convert Octal to decimal number using while loop in C++

C++ Octal to decimal number using while loop

C++ Program to convert Octal to decimal number using while loop

Output

Enter an octal number :

7

Decimal equivalent of 7 is 7.

Let’s see the declarations flow table of the program.

VARIABLE DECLARATION

(LINE NO)

INITILIZATION

(LINE NO)

USE

(LINE NO)

NUM 6 12,8 16,
TEMP 6,10 14,9 12,14
REM 6 12 13,
OCT 6 6,13 16
i 6 6,13

 

13

 

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.