Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Try guessing the ending value of I...

jajdavid
初学者
400 次查看

       I=0
       IF(I.EQ.0) THEN I=1
       WRITE(6,*) I
       END

0 项奖励
1 回复
Steven_L_Intel1
400 次查看

Let me make an interesting suggestion here - put this code in a free-form source (.f90) file rather than fixed-form (.f or .for).

See Doctor Fortran in "Source Form Just Wants to be Free"

0 项奖励
回复