64. GPIO State Enum

 Your task is to declare a scoped enum class named PinState with two values:

  • Low
  • High
     

Also, implement a function named toString(PinState s) that returns string "LOW" or "HIGH".


The program will read 0 or 1, map it to the enum, and print the state.


Example
 Input:

0

Output:

LOW

 

Input:

1

Output:

HIGH
Loading...

Input

0

Expected Output

LOW