CMPT 120 Lecture Notes - Lecture 6: Decimal Mark, Multiplication Operator, Exponentiation
![CMPT 120 Full Course Notes](https://new-docs-thumbs.oneclass.com/doc_thumbnails/list_view/2242525-class-notes-ca-sfu-cmpt-120-lecture27.jpg)
29
CMPT 120 Full Course Notes
Verified Note
29 documents
Document Summary
Mathematical computations addition , subtraction , multiplication and addition are also known as arithmetic operations . The + , - , * , and / symbols we use to represent these arithmetic operations are called. In general, we can say that operators are special symbols that represent computations . Modulus (remainder) operator: remainder of the division (57/10). An expression is a combination of values , variables , and operators . So, 5 + 7 is an expression; n + 1 is an expression; 2*x + 2*y is an expression; 15 < 20 is an expression, and even 45 by itself is an expression. We can categorize expressions based on their result types: arithmetic expressions, boolean expressions. When result of an expression is a numeric value, we can call it an arithmetic. For example, n + 1 is an arithmetic expression if n is numeric.