Remember from math class that 3 + 2 X 5 = 13, not 25. The same holds true for Turing. Even though Turing will calculate algebraic equations properly, it is good programming practice to group items into their intended order of operation by surrounding them with parentheses (round brackets). For example, the above equation, written with a Turing put statement, is better written as: put 3 + (2 * 5) A more complex equation may be written as: put 12 + ( ( 4 - 6 ) / 3 ) Things to remembers:
2 + 4 x 5 = 22 ...where "22" is calculated with your programmed formula. Save as "012.t". |