mecej4
Joined: 31 Oct 2006 Posts: 1886
|
Posted: Tue May 09, 2017 4:34 pm Post subject: |
|
|
The Fortran 95 relational operator for equality is "==", not "=". This point and others can be cleared up by reading the FTN95 documentation.
Try this program:
Code: | program relop
integer :: i=3, j=4
print *,i==3
print *,i/=3
print *,i > 3
print *,j <= i
end program
|
|
|