Statement: Transfers control to the same branch target statement every time it executes.
Syntax
The unconditional GO TO statement transfers control to the branch target statement identified by the specified label.
Compatibility
CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB
See Also: GOTO - Computed GOTO, Execution Control
Examples
The following are examples of GO TO statements:
GO TO 7734
GO TO 99999
The following shows another example:
integer(2) in
10 print *, 'enter a number from one to ten: '
read *, in
select case (in)
case (1:10)
exit
case default
print *, 'wrong entry, try again'
goto 10
end select