Answer:
The output is 24
Step-by-step explanation:
Given
The above code segment
Required
The output
We have (on the first line):




On the second line:

Substitute the value of each variable

Solve the inner brackets


8%3 implies that, the remainder when 8 is divided by 3.
The remainder is 2
So:



Hence, the output is 24