When a new Fortran application (or dll or lib) is created in Code::Blocks a template is used.
Based on your CB installation they are in (C:\gfortran\cb17.12\share\CodeBlocks\templates\wizard\fortran)
here C:\gfortran\cb17.12 is the installation folder.
1. The file type is .f95 and it is better to be changed to .f90
this is a de facto standard to use .f90 for modern fortran instead of .f95, .f03, f2k, .f08, f18, ...
2. The content of file is not suitable and the following is recommended
program main
!
! Local variable
implicit none
! Main body
print*, 'Hello World...'
end program main
3. Other files can be modified as above
for dll and lib project the following can be used
! This is a Fortran Dynamic Link Library (dll) project
subroutine sub()
implicit none
print*, "This is subroutine"
end subroutine sub
and
! This is a Fortran Static Library (lib) project
subroutine sub()
implicit none
print*, "This is subroutine"
end subroutine sub