0
FUNCTION G(K)
    G=K**2+L*K+M
    RETURN
END FUNCTION


PROGRAM MAIN

    I=G(6)
    PRINT*,I
END PROGRAM

Here I want to declare the value of L and M globally so that I can use then in G() and the main proram. How can I do this?

francescalus
  • 27,974
  • 11
  • 58
  • 92
kowser66
  • 31
  • 4

0 Answers0