fortran 77 fortran 77 fortran 77 fortran 77 fortran 77 fortran 77
fortran 77 fortran 77 fortran 77 fortran 77 fortran 77 fortran 77
fortran 77 fortran 77 fortran 77 fortran 77 fortran 77 fortran 77
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
FORTRAN <strong>77</strong><br />
Espressioni<br />
FORTRAN <strong>77</strong><br />
IF<br />
Manipolazioni di stringhe:<br />
IF<br />
({espressione logica}) {istruzione}<br />
S1//S2<br />
(concatenazione)<br />
S(e1:e2) (sottostringa)<br />
LENGTH(S) (lunghezza)<br />
INDEX(S,’T’)(ricerca)<br />
es: S1=‘ABC’,S2=‘DEF’ S=S1//S2 S=‘ABCDEF’<br />
S(3:5)=‘546’ S=‘AB546F’<br />
S=S(1:4) S=‘AB54’<br />
L=LENGTH(S) L=4<br />
L=INDEX(S,’B5’) L=2<br />
in generale:<br />
IF<br />
({espressione logica}) THEN<br />
{istruzioni}<br />
ELSEIF ({espressione logica}) THEN<br />
{istruzioni}<br />
...<br />
ELSE<br />
ENDIF<br />
{istruzioni}<br />
es: b 2 -4ac≥0 ⇒ ‘radici reali’<br />
FORTRAN <strong>77</strong><br />
IF (B**2-4.*A*C.GE.0.) WRITE(*,*) ‘reali’<br />
es: b 2 -4ac≥0,