<script setup lang="ts">

</script>

<template>
  <div>
    <h1 class="text-3xl">Hello World In Fortran 90</h1>
    <hr>
    <p></p>

    <div class="px-3 py-2">
    <pre class="language-fortran"><code class="text-sm">
program hello
  implicit none
  write(*,*) 'Hello world!'
end program hello
      </code></pre>
    </div>

    <p>With modern compilers, running the newest Fortran standards, <span><code>write(*,*)</code> and <code>print</code></span>
      will compile to the exact same assembly. So if you only need to print something to stdout, just use <span><code>print</code></span>
      as it conveys the meaning of the code better. Plus we don't need the full functionality of <span><code>write(*,*)</code></span>
      in this example.</p>

    <div>
      <pre class="language-fortran"><code class="text-sm">
$ gfortran -o hello main.f90
$ ./hello
&gt; Hello world!
      </code></pre>
    </div>
  </div>
</template>