Skip to content

Instantly share code, notes, and snippets.

@classmember
Last active July 21, 2025 15:40
Show Gist options
  • Save classmember/41073ad58cfea700ab371b08a5e7df81 to your computer and use it in GitHub Desktop.
Save classmember/41073ad58cfea700ab371b08a5e7df81 to your computer and use it in GitHub Desktop.

Fortran

Get Fortran on mac

brew install gfortran

Write Hello World program

cat << EOF > ./hello.f90
program hello
    print *, "Hello World!"
end program hello
EOF

Compile

gfortran -o hello hello.f90

Run

./hello

Uninstall Fortran

brew uninstall gfortran
@classmember
Copy link
Author

program hello
    print *, "Hello World!"
end program hello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment