Display each of these constants in decimal in hexadecimal


Write a program in which you do the following:

Define three named constants using the appropriate data types:

DEC_NUM = 65;
HEX_NUM = 0x7a;
LETTER = 'f';

Display each of these constants in decimal, in hexadecimal, and as a character usingcout. Your program will have a total of ninecoutstatements.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Display each of these constants in decimal in hexadecimal
Reference No:- TGS0653622

Now Priced at $40 (50% Discount)

Recommended (90%)

Rated (4.3/5)