C++

Objectives :

The decimal number like 90 or 91 can be expressed in binary values, as shown below.

Some decimal values and corresponding Binary values are shown below.

Decimal Values

Binary Values

0 0
1 1
2 10
3 11
4 100
5 101
6 110
7 111
8 1000
9 1001
10 1010
11 1011
12 1100
   

 

 

Step: 1 Create a source file.

Step: 2 Edit and save Source file

Step: 3 Runtime Views:

Step: