Write a program that prompts the user to enter a hex digit and displays its corresponding binary

Question:

Write a program that prompts the user to enter a hex digit and displays its corresponding binary number. Here is a sample run:

image

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: