rajabadsha
Programmer
What would be the go to equivalent of Fortran into C?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
do 10 i = 1,10, 1
...
if (...) goto 10 ! equivalent of continue in C
...
if (...) goto 20 ! equivalent of break in C
...
10 continue
20 continue
if (.not. condition) goto 30 ! if (conditon) {
...
goto 40 ! }
30 continue ! else {
...
40 continue ! }
goto 50 ! goto L50
...
50 continue !L50:
goto (n) 60, 70, 80 !switch (n) {
... !default:
goto 90 !break;
60 continue !case 1:
...
goto 90 ! break;
70 continue !case 2:
...
goto 90 ! break;
80 continue !case 3:
...
! break;
90 continue !}