r-builds/test/testpkg/src/square.f
2022-08-17 14:30:55 -05:00

5 lines
139 B
Fortran

subroutine square(x,answer)
integer, intent(in) :: x
integer, intent(out) :: answer
answer = x * x
end