New to Fortran (just started today), faced with the natural logarithm:
PROGRAM log IMPLICIT NONE REAL :: x PRINT *, "Enter a number:" READ *, x x = log (x) PRINT *, "The natural log of x is:", x END PROGRAM log
The compiler continues to throw an error:
x = log (x) 1 Error: Symbol at (1) is not appropriate for an expression
Other internal functions work fine. What am I doing wrong?
source share