Of the following, which lines have invalid FORTRAN syntax


  (1) if (I.ne.1) k=3
  (2) if(I.lt.1.and.x.le.y.or.j.le.2) k=2
  (3) if ((i.gt.1.and.x.le.y).or.(j.ge.2) k=2

(1)

(2)

(3)

(2) and (3)

none (all lines are valid)


Back to the 201 Homepage or Next Question