Fortran function remembers values (newbie help)

@Colorizer , just for your reference, here is an option with the recursive method, you will need a modern compiler if you try the code as-is.

1 Like