Calculate sum of numbers using while93 - Java Quiz Question


What will be the output of the following program?


A
sum = 21
B
sum = 28
C
Some other output
D
n = 0
n = 1
n = 2
n = 3
n = 4
n = 5
n = 6
sum = 21
E
Goes into infinite loop