How to work with Binary Arithmetic Operators
To work with Binary Arithmetic Operators
Step 1
Description:
Arithmetic operators, which take real or integer operands, include +, –, *, /, div, and mod.
Declaration:
Operator Operation
+ Addition
- Subtraction
* Multiplication
/ Division
div Integer division
mod remainder
Example:
Writeln('Answer is : ',a+b+c);
Writeln('Answer is : ',a*b*c);
Writeln('Answer is : ',a+b-c);
No comments:
Post a Comment