Print numbers in reverse order using while - Java Quiz Question


What will be the output of the following program?


A
n = 4
n = 3
n = 2
n = 1
B
n = 4
n = 3
n = 2
n = 1
n = 0
C
n = 5
n = 4
n = 3
n = 2
n = 1
n = 0
D
n = 5
n = 5
n = 5
n = 5
n = 5