11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LESSON 10INTRODUCING NUMBERSINPUT, LET AND PRINTSo far we have only used strings. Numbers can be used too. Enter and run this program:10 PRINT "clr"20 PRINT "GIVE ME A NUMBER"30 INPUT N40 LET A=N+145 PRINT50 PRINT "HERE IS A BIGGER ONE"60 PRINT AARITHMETICThe plus and minus signs are side by side in the top row of the keyboard.Computers use "*" instead of "x" for a multiplication sign.Try this. Change line 40 so that N is multiplied by 5.Computers use "/" for a division sign. It is on the "?" key. Answers are given as decimals.VARIABLESThe name of a box which contains a string must end with a dollar sign. Examples:N$,A$,Z$.The name of a box which contains a number doesn't have a dollar sign. Examples:N, A, Z.60

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!