blob: b753872912a77226563c2f3885a9d5bd1ea4ac1e [file] [log] [blame]
program Hello
integer :: i = 3 !!! a variable !!!
call Sub(Fn(i) + 1)
print *, "The integer is ", i
contains ! a comment
subroutine Sub(x) ! start
print *, "In the subroutine, the integer is ", x
end subroutine Sub ! end
integer function Fn(n) result(y)
print *, "You sent", n, "to the function"
y = n
end function
end program