Assume that x is a char variable has been declared and already given a value. Write an expression whose value is true if and only if x is an hexadecimal (Base 16) digit (0-9 plus A-F or a-f).

Relax

Respuesta :

Answer: x in [0-9A-Fa-f]

Step-by-step explanation:

Depends upon syntax of your programming language, but you will write either a string comparison or a regex with the character set defined as above