12.07.2015 Views

2. Built-in Data Types

2. Built-in Data Types

2. Built-in Data Types

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• Increment<strong>in</strong>g can also be specified us<strong>in</strong>g someshorthand notation• Example: <strong>in</strong>stead ofx = x + 2you can writex += 2• A similar notation works for subtraction and otheroperations• Example: x -= 2 for x = x - 2• These shorthand notations are purely optional –use them if you want to• But you should be able to recognize them if someoneelse writes them40

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

Saved successfully!

Ooh no, something went wrong!