Why does this `do`–`while` loop repeat the last value after the end?

do while loop java
while loop example
do while loop c++
for loop
while loop python
how many times do while loop will be executed if condition is false
do while vs while
for loop java