
-----------------------------------
ZeroPldn
Wed Mar 09, 2005 5:00 pm

Loops for the Very Beginners!
-----------------------------------
mmk, my first post, here it goes...

Basic Loops

ok, for the basic loop, that goes on forever

loop
put "type a number
var number:real
get number
put "the number is "..
put number
end loop

this will keep outputing the number u enter, but u cant stop it unless u exit the harsh way, the top right X button (OMG!)

loop w/ exception

ok, now this is the same as the first, 'cept this one u can end the program when you type a negative number.

loop 
put "enter a number"
put "if u enter a negative number, the program will end"
var number:real
get number
     end if number