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

Consider the following code segment What is the value of result after the code segment is executed WILL GIVE BRAINLIEST IF CORRECTA 6B 10C 15D 21 class=