Boxes Tutorials

From Progzoo
Revision as of 13:22, 11 October 2013 by Cs66 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
<< Strings Tutorial | For Tutorial >>
Boxes1.png
Testing Two Number
You compare two numbers i and j and change colour depending on their values.
Boxes2.png
Modulus
You can use the modulus operator to test for odd/even. You can also check if numbers are divisible by numbers other than 2.
Boxes3.png
Checking Ranges
You can test a range of numbers using the greater than and less than operators.