View previous topic :: View next topic |
Author |
Message |
1so35
Joined: 28 Mar 2011 Posts: 3
|
Posted: Thu Mar 31, 2011 12:23 pm Post subject: do problem |
|
|
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� |
|
Back to top |
|
 |
dpannhorst
Joined: 29 Aug 2005 Posts: 165 Location: Berlin, Germany
|
Posted: Thu Mar 31, 2011 1:29 pm Post subject: |
|
|
Try this solution:
DO K=1,10
IF((K.EQ.3).OR.(K.EQ.7))CYCLE
your doloop code
ENDDO |
|
Back to top |
|
 |
1so35
Joined: 28 Mar 2011 Posts: 3
|
Posted: Fri Apr 01, 2011 3:10 am Post subject: |
|
|
Thanks a lot. |
|
Back to top |
|
 |
|