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
  • 30,576
  • 16
  • 61
  • 96
kowser66
  • 125
  • 1
  • 8

0 Answers0