F90: Lendo de um arquivo

From AdonaiMedrado.Pro.Br
Revision as of 15:00, 11 November 2008 by Adonaimedrado (Talk | contribs) (New page: == Exemplo do conteúdo do arquivo aula.txt == 3 4 == Arquivo aula.f90 == <code lang="fortran"> PROGRAM aula IMPLICIT NONE INTEGER :: A,B OPEN (UNIT=10, FILE="aula.txt", STATUS="OLD"...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Exemplo do conteúdo do arquivo aula.txt

3
4

Arquivo aula.f90

PROGRAM aula
	IMPLICIT NONE
	INTEGER :: A,B
	OPEN (UNIT=10, FILE="aula.txt", STATUS="OLD")
	READ (10,*) A
	READ (10,*) B
	WRITE (*,*) A+B
	CLOSE (10)
END PROGRAM aula