Missing something

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2008
Posts: 21
Reputation: army88m2 is an unknown quantity at this point 
Solved Threads: 0
army88m2 army88m2 is offline Offline
Newbie Poster

Missing something

 
0
  #1
Jul 23rd, 2008
I need some help here I guess I am suppossed to put this code inside a while loop. Don't have a clue this is my first scripting class.


  1. if (x <=20 and >=25 ) then
  2. print x
  3.  
  4. Else
  5.  
  6. If (x <=40 and >=45 )
  7.  
  8. Print x
  9.  
  10. endif
Last edited by Tekmaven; Jul 24th, 2008 at 3:02 am. Reason: Code tags
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 42
Reputation: Bill Purkins is an unknown quantity at this point 
Solved Threads: 1
Bill Purkins Bill Purkins is offline Offline
Light Poster

Re: Missing something

 
0
  #2
Jul 23rd, 2008
try

  1.  
  2. 'ADD LINE
  3. FOR X = 1 to 45
  4.  
  5. if (x <=20 and >=25 ) then
  6. print x
  7.  
  8. Else
  9.  
  10. If (x <=40 and >=45 )
  11.  
  12. Print x
  13.  
  14. endif
  15.  
  16. 'ADD LINE
  17. NEXT X

Hope this helps. Next time you post, please enclose code inside
  1. ...
tags for readability.

Bill P.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 21
Reputation: army88m2 is an unknown quantity at this point 
Solved Threads: 0
army88m2 army88m2 is offline Offline
Newbie Poster

Re: Missing something

 
0
  #3
Jul 23rd, 2008
My instructor said something about putting it all inside a while loop.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 42
Reputation: Bill Purkins is an unknown quantity at this point 
Solved Threads: 1
Bill Purkins Bill Purkins is offline Offline
Light Poster

Re: Missing something

 
0
  #4
Jul 23rd, 2008
That'll work too.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 21
Reputation: army88m2 is an unknown quantity at this point 
Solved Threads: 0
army88m2 army88m2 is offline Offline
Newbie Poster

Re: Missing something

 
0
  #5
Jul 23rd, 2008
The question is how to do it. I don't know . I am really getting frustrated with this class.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Missing something

 
0
  #6
Jul 23rd, 2008
Hi...
You post much thread with same question.
Your question already answered in other thread by other member with looping example.
Check This :
http://www.daniweb.com/forums/thread136096.html
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC