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
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
Jump to Posttry
'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
…...
Jump to PostHi...
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
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.
That'll work too.
The question is how to do it. I don't know . I am really getting frustrated with this class.
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
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.