Sunday, July 14, 2013

Print Command

Ok, Here is my first post! It is about the Print Command. Here's my first example:
PRINT "Hi"
This will make it say Hi. But if you didn't put the quote marks, it would say 0. That is become it thinks it is a number but does not equal any number, so it would equal 0. Speaking of numbers, lets move on to variables and numbers.
VAR$
This is a variable.
24
This is obviously a number.
So lets set the variable VAR$ to hi. This is what you have to put:
VAR$="hi"
If you then type Print VAR$ it will print hi.
Now the number part.
NUM=2
Then if you put VAR$*NUM it will print hi hi. Neat huh? But if we do this:
NUM2=5
You can put PRINT NUM+(, * or -)NUM2 and it will put what the equation equals.
Now if you know you can do all of this and you have done it already, get ready to move on.
See you on the next post!


No comments:

Post a Comment