Consider the following code segment. What is the value of result after the code segment is executed? (WILL GIVE BRAINLIEST IF CORRECT)
A) 6
B) 10
C) 15
D) 21
