84. Register8 Equality Operator

 The class Register8 represents an 8-bit hardware register and is already defined with a private variable value, a constructor, and a getter.

Your task is to overload the == operator so that two Register8 objects can be compared.

Two registers are considered equal if their stored 8-bit values are identical.

In main():

  • Read two integer values from input.
  • Each value represents a register write and will be stored as an 8-bit unsigned value (uint8_t).
  • Create two Register8 objects using these values.
  • Compare them using the overloaded == operator.
  • Print:
    • Equal if the registers hold the same 8-bit value
    • Not Equal otherwise

All integer inputs are guaranteed to be in the range 0 to 255.

 

Input / Output Specification

Input
Two space-separated integers a and b

0 ≤ a, b ≤ 255

Output
Print exactly one of the following (case-sensitive):

  • Equal
  • Not Equal

 

Example 1

Input:

10 10

Output:

Equal 

 

Example 2

Input:

5 7

Output:

Not Equal

 

 

 

 

Loading...

Input

10 10

Expected Output

Equal