Sha256: 5ff2d6496f0bc8646e03c8f9a3d91e2d09232dc8bd4782e9636209c0ab042836

Contents?: true

Size: 573 Bytes

Versions: 10

Compression:

Stored size: 573 Bytes

Contents

{{works with|F77}}
Simplest case - display using default formatting:

print *,"Hello world!"

Use explicit output format:

100   format (5X,A,"!")
      print 100,"Hello world!"

Output to channels other than stdout goes like this:

write (89,100) "Hello world!"

uses the format given at label 100 to output to unit 89. If output unit with this number exists yet (no "<tt>OPEN</tt>" statement or processor-specific external unit setting), a new file will be created and the output sent there. On most UNIX/Linux systems that file will be named "<tt>fort.89</tt>".
{{7*7}}

Version data entries

10 entries across 7 versions & 1 rubygems

Version Path
zettacode-0.1.7 files.zettacode/hello_world.text/fortran.txt
zettacode-0.1.6 files.zettacode/hello_world.text/fortran.txt
zettacode-0.1.6 files.zettacode2/hello_world.text/fortran.txt
zettacode-0.1.5 files.zettacode/hello_world.text/fortran.txt
zettacode-0.1.5 files.zettacode2/hello_world.text/fortran.txt
zettacode-0.1.4 files.zettacode/hello_world.text/fortran.txt
zettacode-0.1.4 files.zettacode2/hello_world.text/fortran.txt
zettacode-0.1.3 files.zettacode/hello_world.text/fortran.txt
zettacode-0.1.2 files.zettacode/hello_world.text/fortran.txt
zettacode-0.1.1 zettacode.files/hello_world.text/fortran.txt