data type :: variable_name
integer :: x
real :: x
complex :: x,y
logical :: x=.True. , logical :: x = .FALSE.
character :: xIn Fortran stdio has different numeric representation:
- stderr - 0
- stdin - 5
- stdout - 6
PROGRAM TEST
WRITE(0,_) "stderr"
WRITE(6,_) "hello to stdout"
READ(*,fmt) something
END PROGRAM TEST- LEARN TO CODE IN 7 LESSONS WITH FORTRAN 90/95: https://www.fortrantutorial.com/