First hint of object oriented programming using C++.

Output of the C++ Program:

Result of execution

The value of index is -23
The value of distance is 12.345
The value of letter is X
The value of name is John Doe
The decimal value of index is 31
The octal value of index is 37
The hex value of index is 1f
The character letter is X
Input a decimal value –> 999
The hex value of the input is 3e7