9.2 With the text zone

9.2.1 First example:

The primitive print, pr displays text in the text zone. print is waiting for an argument: a list or a word.

Eg: pr "hello pr [I write what I want] (Don’t forget the quote " when you want to write only a word.)
 to ex3 :n
 print :n
 ex3 :n+1
 end

Run the command: ex3 0 and stop the program with the STOP button.

Modify the program to dispay the numbers with an interval of 2.



We now want to display all integers greater than 100 which are divisable by 5. We just have to modify the program:

 to ex3 :n
 print :n
 ex3 :n+5
 end

and then run: ex3 100

9.2.2 Breakout test

Try the following lines:

if 2+1=3 [print [it is true]]

if 2+1=4 [print [it is true]][print [it is false]]

if 2+5=7 [print "true][print "false]



If you doesn’t understand yet the syntax of the primitive if, refer to the annex.
 to ex3 :n
 if :n=100 [stop]
 print :n
 ex3 :n+1
 end
                                                                                                  
                                                                                                  

Then run the command ex3 0

Modify the program to display integers between 55 and 350 which are divisable by 11.