replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - do problem
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

do problem

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
1so35



Joined: 28 Mar 2011
Posts: 3

PostPosted: Thu Mar 31, 2011 12:23 pm    Post subject: do problem Reply with quote

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
View user's profile Send private message
dpannhorst



Joined: 29 Aug 2005
Posts: 165
Location: Berlin, Germany

PostPosted: Thu Mar 31, 2011 1:29 pm    Post subject: Reply with quote

Try this solution:

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

your doloop code

ENDDO
Back to top
View user's profile Send private message Visit poster's website
1so35



Joined: 28 Mar 2011
Posts: 3

PostPosted: Fri Apr 01, 2011 3:10 am    Post subject: Reply with quote

Thanks a lot.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group