mercredi 21 février 2018

logic of fortran (loop, if, next)

I have the fortran code here.

loop<(do something)   
<k=1,n; if(test) next; 
(do another thing 1); (do another thing 2);
(do another thing 3);
>
>

What happens if the test statement is true? I guess the code execute do another thing 2 jumping over do another thing 1.

Aucun commentaire:

Enregistrer un commentaire