PPT Slide
GOTO Translation
First Step
Try to identify Fortran constructs containing GOTO statements that can be translated to equivalent Java constructs (which cannot contain a goto statement).
10 CONTINUE
IF(C .EQ. ONE) THEN
A = 2 * A
GO TO 10
END IF
while(c == one)
{
a = 2 * a;
}
Previous slide
Next slide
Back to first slide
View graphic version