Flowgorithm Arithmetic Operators
The Flowgorithm supports many arithmetic operators that perform mathematical operations on numbers(Integers and Real). These operators are also called mathematical operators.
The basic mathematical operations are:
- Addition
- Subtraction
- Multiplication
- Division
- Modulus
Arithmetic Operator | Operator Symbol | Description |
Addition | + | a + b Adds a and b variables |
Subtraction | – | a – b Subtracts b from a |
Multiplication | *,× | a * b Multiplies a and b |
Division | /,÷ | a / b Divides a by b |
Modulo | % | a % b Computes the remainder of dividing a by b. |
Example
The following flowchart example illustrates the basic use of the operators:
Exercise
Calculate the output of the following expression:
185 % 10