logo

How to Execute a.out after Compiling Fortran in Linux 📂Programing

How to Execute a.out after Compiling Fortran in Linux

Guide

To compile a file with the extension .f90, such as example.f90, enter

gfortran example.f90

in the console. After running it, a file named a.out is created in the same directory. If you enter

./a.out

in the console, you can see the program being executed in the console.