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.

if (x <=20 and >=25 ) then
 print x

Else

 If (x <=40 and >=45 )

  Print x

endif

Recommended Answers

All 5 Replies

try

'ADD LINE
FOR X = 1 to 45

if (x <=20 and >=25 ) then
print x

Else

If (x <=40 and >=45 )

Print x

endif 

'ADD LINE
NEXT X

Hope this helps. Next time you post, please enclose code inside

...

tags for readability.

Bill P.

My instructor said something about putting it all inside a while loop.

The question is how to do it. I don't know . I am really getting frustrated with this class.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.