1 | GOTO Translation |
2 | |
3 | First Step |
4 | Try to identify Fortran constructs containing GOTO statements that can be translated to equivalent Java constructs (which cannot contain a goto statement). |
5 | 10 CONTINUE |
6 | IF(C .EQ. ONE) THEN |
7 | A = 2 * A |
8 | GO TO 10 |
9 | END IF |
10 | while(c == one) |
11 | { |
12 | a = 2 * a; |
13 | } |