examples\book\digital-artists\chapter1\Listing1.6.ck
// Listing 1.6 Doing math with integers

// arithmetic with integers
220 => int myPitch;

// add or subtract
myPitch + myPitch - 110 => int anotherPitch;

// multiply
2 * myPitch => int higherPitch;

// divide
myPitch / 2 => int lowerPitch;

// print them all out
<<< myPitch, anotherPitch, higherPitch, lowerPitch >>>;
home .. language .. program .. examples