Changes between Version 4 and Version 5 of ExpressionsExample
 Timestamp:
 10/13/09 16:05:04 (10 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

ExpressionsExample
v4 v5 17 17 18 18 i = 12 * 12; /* multiplication */ 19 writefln("12 x 12 = ", i); /* i should be 144 */19 writefln("12 x 12 = %d", i); /* i should be 144 */ 20 20 21 21 j = i / 8; /* division */ 22 writefln("144 / 8 = ", j); /* j should be 18 */22 writefln("144 / 8 = %d", j); /* j should be 18 */ 23 23 24 24 i = 44; /* same as saying "i = i  44;" */ 25 writefln("144  44 = ", i); /* i should be 100 */25 writefln("144  44 = %d", i); /* i should be 100 */ 26 26 } 27 27 }}}