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