Upcoming SlideShare
×

# Arithmetic operator

742 views

Published on

Arithmetic Operation-Reviewer!

0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
742
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
16
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Arithmetic operator

1. 1. Arithmetic Operator Prepared by: Jordan Delacruz Rona Mae Dominguez
2. 2. The operators are symbols which take one or more operands or expressions and carry out arithmetic or logical calculations. Operators Arithmetic operator Relational operator Logical Operator Assignment Operator Conditional Operators Increment & Decrement Operators Bitwise operators Special operators
3. 3. Arithmetic Operators Operators that represent mathematical operations which perform numeric computations, for example, adding two numbers or raising the elements of an array to a given power.
4. 4. + Operator The addition operator is used to calculate the sum of two numbers.
5. 5. Example Operand 1 Operand 2 Operator Output 10 20 30
6. 6. - Operator The subtraction operator is used to find the difference between two numbers or to indicate the negative value of a numeric expression.
7. 7. Example Operand 1 Operand 2 Operator Output 8 1 7
8. 8. Example Negation 8
9. 9. * Operator The multiplication operator is used to calculate the product of two numbers.
10. 10. Example Operand 1 Operand 2 Operator Output 8 8 64
11. 11. / Operator The division operator is used to calculate the quotient of two numbers.
12. 12. Example Operand 1 Operand 2 Operator Output 8 4 2
13. 13. ^ Operator The exponentiation operator raises a number to the power of an exponent.
14. 14. Example Operand 1 Operand 2 Operator Output 8 2 64
15. 15. % Operator The modulus operator divides two integers and returns the integer remainder.
16. 16. Example Operand 1 Operand 2 Operator Output % mod 8 5 3
17. 17. Summary