Answer:
The value of result is 20
Explanation:
Given
The above code segment
Required
The value of result
In the first line, we have:
[tex]X = 5; Y = 3; Z = 2[/tex]
In the second, we have:
[tex]result = (X + Y)/Z * X[/tex]
This implies that:
[tex]result = (5 + 3)/2 * 5[/tex]
[tex]result = 8/2 * 5[/tex]
[tex]result = 4 * 5[/tex]
[tex]result = 20[/tex]