New to Fortran (just started today), having trouble 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 keeps throwing up the error:
x = log (x)
1
Error: Symbol at (1) is not appropriate for an expression
Other intrinsic functions work fine. What am I doing wrong?