2. Write a program that converts a hexadecimal digit into a decimal value. (The output of your program should be like th
Posted: Thu Jun 02, 2022 7:50 am
2. Write a program that converts a hexadecimal digit into a decimal value. (The output of your program should be like the following but you should try different numbers.) (40P) Enter a hex digit: AB7C You must enter exactly one character Enter a hex digit: B The decimal value for hex digit B is 11 Enter a hex digit: 8 The decimal value for hex digit 8 is 8 Enter a hex digit: T T is an invalid input