25.06.2013 Views

Il Linguaggio Fortran 90/95

Il Linguaggio Fortran 90/95

Il Linguaggio Fortran 90/95

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

428 Operazioni di I/O su file<br />

EXIT<br />

ELSE IF (IO_stat_number>0 ) THEN<br />

PRINT*," Dati non validi nel file alla linea ",i<br />

PRINT*," Controllare il file di input! "<br />

EXIT<br />

END IF<br />

END DO<br />

DO i=1,10<br />

PRINT* , " i = ",i," a(i) = ",a(i)<br />

END DO<br />

END PROGRAM prova_lettura<br />

2. Generazione di un file sequenziale di tipo testo:<br />

PROGRAM tabulazione<br />

!<br />

! Scopo del programma: tabellare la funzione esterna func(x)<br />

! nell’intervallo x1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!