Re: A question about loop with CONTINUE
- From: Madhusudan Singh <spammers-go-here@xxxxxxxxxxxx>
- Date: Sun, 16 Oct 2005 20:03:27 -0400
Simon wrote:
> I'm new to Fortran. Just have a simple question about GO TO and CONTINUE
> in loop. See the following example:
>
> DO 10 I=1,N
> (Code..........)
> IF (A.GT.B)GO TO 10
> (Code.........)
> 10 CONTINUE
> (subsequent code........)
>
> I am not sure what "GO TO 10" will do:
> - get out of the loop, and execute subsequent code.
> OR
> - go to "10 CONTINUE", and get back to "DO 10 I=1,N", keep looping till N
> reached.
>
> Thank you in advance!
Why are you using such ancient dialect of Fortran (curiosity aside) ?
Fortran 77 is about 20-25 years old.
.
- Follow-Ups:
- Re: A question about loop with CONTINUE
- From: Ken Plotkin
- Re: A question about loop with CONTINUE
- From: Steven G. Kargl
- Re: A question about loop with CONTINUE
- References:
- A question about loop with CONTINUE
- From: Simon
- A question about loop with CONTINUE
- Prev by Date: A question about loop with CONTINUE
- Next by Date: Re: A question about loop with CONTINUE
- Previous by thread: A question about loop with CONTINUE
- Next by thread: Re: A question about loop with CONTINUE
- Index(es):
Relevant Pages
|