Calculate sum of numbers using while and break - Java Quiz Question


What will be the output of the following program?


A
sum = 12
B
sum = 48
C
sum = 0
D
sum = 14