User/ter/nudge#154
Closed
thomas-robinson wants to merge 1 commit into
Closed
Conversation
Member
Author
|
Here is an example program that does the replacement. If you comment out lines 8 and 9 and uncomment 10, you will get the same result. program br
jloop: do j = 1,10
iloop: do i = 11,100
kloop: do k = 200,250
if (i+k == 220) then
write (6,*) "You made it to 220",i,k
write(6,*) i,j,k
cycle iloop
! goto 50
endif
enddo kloop
write (6,*) i
50 write(6,*) i,j,k
enddo iloop
enddo jloop
end program br
~ |
Member
|
The current approach is best for compatibility with all branches. Closing this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This accomplishes the same thing as #153 but removes the
gotoand uses acyclestatement.Fixes #153
How Has This Been Tested?
This needs to be tested against #153
Checklist:
Please check all whether they apply or not