Your code should read the values in RAM[0] and RAM[1], then behave as follows:
For example, given these input values, your code should leave the following values in RAM[2]:
RAM[0] | RAM[1] | RAM[2] |
---|---|---|
-2 | 0 | 6 |
51 | 3 | 1 |
30 | 15 | 14 |
You may assume that RAM[0] is between −10000 and 10000 (so that no integer overflows can occur). For full credit your code will need to pass several test cases.