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?
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?