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.)
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:
and then run: ex3 100
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.
Then run the command ex3 0
Modify the program to display integers between 55 and 350 which are divisable by 11.