Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Do loop does not seem to be exiting properly
Example:
Do 700 Niter=1,Noiter
***
Code
***
700 ContinueIn debugger, Noiter is equal to 2, a watch shows that Niter will increment greater than Noiter until loop is exited be some other means. Niter and Noiter are not changed in the loop, this has been shown by stepping through each line with a watch on Niter and Noiter, they do not change. Both variables are integers.
Other do loops in the program run fine, tried hard coding a number for Noiter, problem remained.

I tested this program and it iterated two times.
Program testme
integer Niter, Noiter
Noiter = 2
Do 700 Niter=1,Noiter
Print *,Niter
700 Continue
stop
endBTW, I am using the following:
Windows XP Pro
Cygwin
g77

![]() |
File that copies itself
|
getting info abt clients ...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |