'Why does counter increase after looping in fortran90 [duplicate]

I'm trying to figure out why did i increased by 1 after the loop has finished. i have tried to add continue after 'print' but still the same problem.

Do 5 i= 2,3 
5 print*, i 
Print*,i
End

I have tried another example in this image below https://i.stack.imgur.com/tHW0w.png



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source