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, you need to enter

gfortran example.f90

in the console. After the compilation, a file named a.out is created in the same directory. To run the program, you can enter

./a.out

in the console to see the program being executed.