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 12 THE IF COMMAND WITH NUMBERSTry this: 10 REM *•* TEENAGER ***15 PRINT "clr"20 PRINT "YOUR AGE?"30 INPUT A40 IF A19 THEN PRINT" GROWN UP ALREADY!"This IF command is like the one you used before with strings. Again we have10 IF phrase A is true THEN do command C"Phrase A" can have these arithmetic symbols:= equal to> greater than< less than not equal toEach "phrase A" is written in "math language" but you should say it out loud in English.For example:A B is pronounced "A is not equal to B"5 < 7 is pronounced "five is less than seven"PRACTICEFor these examples, LET A=7 and LET B=5 and LET 0=5.Say each "phrase A" out loud and tell if it is true or false:A=B T FA>C T FA>B T FB=C TFA

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

Saved successfully!

Ooh no, something went wrong!