Silverfrost Forums

Welcome to our forums

do problem

31 Mar 2011 11:23 #7998

hey guys this is my first post.i'm new at fortran and a got a problem. i have a do loop(k=1,10) but i dont want 3 and 7 to be included.How can i export them from loop and make the loop just for 1 2 4 5 6 8 9.

Thanks in advanceƧ

31 Mar 2011 12:29 #8000

Try this solution:

 DO K=1,10
     IF((K.EQ.3).OR.(K.EQ.7))CYCLE

    your doloop code

 ENDDO
1 Apr 2011 2:10 #8002

Thanks a lot.

Please login to reply.