How to Exit Program in Fortran - Code Snippet

How to perform 'Exit Program' in Fortran.

example.f90
! Task: Exit Program
! Language: Fortran

program exit_program() 
    ! Implementation for Exit Program
    ! TODO: Implement core logic here
    ! Step 1: Prepare data
    ! Step 2: Process Exit Program
    print *,("Done");
end program
AdSense Slot