`#include "MusimatTutorial.h"`

Go to the source code of this file.

## Functions | |

MusimatTutorialSection (B0108) |

MusimatTutorialSection | ( | B0108 | ) |

Definition at line 2 of file B0108.cpp.

{ Print("*** B.1.8 Operators and Operands ***"); /***************************************************************************** B.1.8 Operators and Operands The symbols + and - are operators, and the data they act upon are operands. Most operators take two operands, and the operator lies between the operands, for example, a + b, and c / d. Such operators are called binary infix, meaning that the operator lies between two operands. In its binary infix form, the symbol "-" means subtraction, for example, a - b. The unary prefix "-" operator comes before the expression it negates, for example, -3. *****************************************************************************/ Print("2 + 2 = ", 2 + 2); Print("-3 = ", -3); /***************************************************************************** Multiplication in mathematics is typically expressed by the concatenation of variables, so for instance in standard mathematics parlance, "at" means the product of variables a and t. But this can be ambiguous, because at could also refer to the English word "at". To avoid ambiguity, the infix operator "*" indicates multiplication, so the product of m times n is written m * n. *****************************************************************************/ Integer m = 2; Integer n = 3; Print("m * n = ", m * n); }

Generated on Fri Nov 26 2010 16:18:26 for Musimat Tutorial by 1.7.2