SlideShare a Scribd company logo
1 of 17
Arithmetic Operator Prepared by: Jordan Delacruz Rona Mae Dominguez
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
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.
+ Operator The addition operator is used to calculate the sum of two numbers.
Example Operand 1 Operand 2 Operator Output 10 20 30
- Operator The subtraction operator is used to find the difference between two numbers or to indicate the negative value of a numeric expression.
Example Operand 1 Operand 2 Operator Output 8 1 7
Example Negation 8
* Operator The multiplication operator is used to calculate the product of two numbers.
Example Operand 1 Operand 2 Operator Output 8 8 64
/ Operator The division operator is used to calculate the quotient of two numbers.
Example Operand 1 Operand 2 Operator Output 8 4 2
^ Operator The exponentiation operator raises a number to the power of an exponent.
Example Operand 1 Operand 2 Operator Output 8 2 64
% Operator The modulus operator divides two integers and returns the integer remainder.
Example Operand 1 Operand 2 Operator Output % mod 8 5 3
Summary

More Related Content

What's hot

Operators and expressions
Operators and expressionsOperators and expressions
Operators and expressions
vishaljot_kaur
 
C Prog. - Operators and Expressions
C Prog. - Operators and ExpressionsC Prog. - Operators and Expressions
C Prog. - Operators and Expressions
vinay arora
 

What's hot (20)

Operator.ppt
Operator.pptOperator.ppt
Operator.ppt
 
Operator of C language
Operator of C languageOperator of C language
Operator of C language
 
Report on c
Report on cReport on c
Report on c
 
Java 2
Java 2Java 2
Java 2
 
itft-Operators in java
itft-Operators in javaitft-Operators in java
itft-Operators in java
 
Operators and expressions
Operators and expressionsOperators and expressions
Operators and expressions
 
C Prog. - Operators and Expressions
C Prog. - Operators and ExpressionsC Prog. - Operators and Expressions
C Prog. - Operators and Expressions
 
Operators
OperatorsOperators
Operators
 
Operator in c programming
Operator in c programmingOperator in c programming
Operator in c programming
 
05 operators
05   operators05   operators
05 operators
 
Opeartor & expression
Opeartor & expressionOpeartor & expression
Opeartor & expression
 
R operators
R   operatorsR   operators
R operators
 
OCA JAVA - 3 Programming with Java Operators
 OCA JAVA - 3 Programming with Java Operators OCA JAVA - 3 Programming with Java Operators
OCA JAVA - 3 Programming with Java Operators
 
Operators in java presentation
Operators in java presentationOperators in java presentation
Operators in java presentation
 
Operators in C & C++ Language
Operators in C & C++ LanguageOperators in C & C++ Language
Operators in C & C++ Language
 
Operators in c programming
Operators in c programmingOperators in c programming
Operators in c programming
 
Operators in python
Operators in pythonOperators in python
Operators in python
 
OPERATORS OF C++
OPERATORS OF C++OPERATORS OF C++
OPERATORS OF C++
 
COM1407: C Operators
COM1407: C OperatorsCOM1407: C Operators
COM1407: C Operators
 
Operators and Expressions in C++
Operators and Expressions in C++Operators and Expressions in C++
Operators and Expressions in C++
 

Viewers also liked (6)

Slideshare ppt
Slideshare pptSlideshare ppt
Slideshare ppt
 
26.Arithmetic Operator
26.Arithmetic Operator26.Arithmetic Operator
26.Arithmetic Operator
 
7. Relational Database Design in DBMS
7. Relational Database Design in DBMS7. Relational Database Design in DBMS
7. Relational Database Design in DBMS
 
INTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGINTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMING
 
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
 
Slideshare Powerpoint presentation
Slideshare Powerpoint presentationSlideshare Powerpoint presentation
Slideshare Powerpoint presentation
 

Similar to Arithmetic operator

Operator & Expression in c++
Operator & Expression in c++Operator & Expression in c++
Operator & Expression in c++
bajiajugal
 
Chapter 3 dti2143
Chapter 3 dti2143Chapter 3 dti2143
Chapter 3 dti2143
alish sha
 
Chapter 3.3
Chapter 3.3Chapter 3.3
Chapter 3.3
sotlsoc
 

Similar to Arithmetic operator (20)

Cse lecture-4.1-c operators and expression
Cse lecture-4.1-c operators and expressionCse lecture-4.1-c operators and expression
Cse lecture-4.1-c operators and expression
 
OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1
 
Operators and it's type
Operators and it's type Operators and it's type
Operators and it's type
 
Arithmetic and increment decrement Operator
Arithmetic and increment decrement OperatorArithmetic and increment decrement Operator
Arithmetic and increment decrement Operator
 
Opreator In "C"
Opreator In "C"Opreator In "C"
Opreator In "C"
 
This slide contains information about Operators in C.pptx
This slide contains information about Operators in C.pptxThis slide contains information about Operators in C.pptx
This slide contains information about Operators in C.pptx
 
Operator & Expression in c++
Operator & Expression in c++Operator & Expression in c++
Operator & Expression in c++
 
Java Operators.ppt
Java Operators.pptJava Operators.ppt
Java Operators.ppt
 
Class 2 variables, classes methods...
Class 2   variables, classes methods...Class 2   variables, classes methods...
Class 2 variables, classes methods...
 
Operators in C/C++
Operators in C/C++Operators in C/C++
Operators in C/C++
 
Operators1.pptx
Operators1.pptxOperators1.pptx
Operators1.pptx
 
Operators in Python
Operators in PythonOperators in Python
Operators in Python
 
operators and expressions in c++
 operators and expressions in c++ operators and expressions in c++
operators and expressions in c++
 
OPERATORS IN C.pptx
OPERATORS IN C.pptxOPERATORS IN C.pptx
OPERATORS IN C.pptx
 
C++ Expressions Notes
C++ Expressions NotesC++ Expressions Notes
C++ Expressions Notes
 
Operators in C#
Operators in C#Operators in C#
Operators in C#
 
Chapter 3 dti2143
Chapter 3 dti2143Chapter 3 dti2143
Chapter 3 dti2143
 
Chapter 3.3
Chapter 3.3Chapter 3.3
Chapter 3.3
 
Types of Operators in C programming .pdf
Types of Operators in C programming  .pdfTypes of Operators in C programming  .pdf
Types of Operators in C programming .pdf
 
Operators
OperatorsOperators
Operators
 

More from Jordan Delacruz (19)

Novel analysis
Novel analysisNovel analysis
Novel analysis
 
Motion tween resize
Motion tween resizeMotion tween resize
Motion tween resize
 
Computer motion tween
Computer motion tweenComputer motion tween
Computer motion tween
 
Introduction to layers
Introduction to layersIntroduction to layers
Introduction to layers
 
Graphics
GraphicsGraphics
Graphics
 
(Sept.14)
(Sept.14)(Sept.14)
(Sept.14)
 
(Sept.7)
(Sept.7)(Sept.7)
(Sept.7)
 
(Sept.5)
(Sept.5)(Sept.5)
(Sept.5)
 
(Sept. 8)
(Sept. 8)(Sept. 8)
(Sept. 8)
 
(Sept6. )
(Sept6. )(Sept6. )
(Sept6. )
 
(Sept15.)demo
(Sept15.)demo(Sept15.)demo
(Sept15.)demo
 
(Aug.31) introduction to macflash
(Aug.31) introduction to macflash(Aug.31) introduction to macflash
(Aug.31) introduction to macflash
 
(Sept.1) environment
(Sept.1) environment(Sept.1) environment
(Sept.1) environment
 
Conditional statement ss2
Conditional statement ss2Conditional statement ss2
Conditional statement ss2
 
Conditional statement ss1
Conditional statement ss1Conditional statement ss1
Conditional statement ss1
 
Introduction to basic programming repetition
Introduction to basic programming repetitionIntroduction to basic programming repetition
Introduction to basic programming repetition
 
Introduction to basic programming
Introduction to basic programmingIntroduction to basic programming
Introduction to basic programming
 
Algorithm and flowchart2010
Algorithm and flowchart2010Algorithm and flowchart2010
Algorithm and flowchart2010
 
Introduction to flowchart
Introduction to flowchartIntroduction to flowchart
Introduction to flowchart
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

Arithmetic operator

  • 1. Arithmetic Operator Prepared by: Jordan Delacruz Rona Mae Dominguez
  • 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. 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. + Operator The addition operator is used to calculate the sum of two numbers.
  • 5. Example Operand 1 Operand 2 Operator Output 10 20 30
  • 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. Example Operand 1 Operand 2 Operator Output 8 1 7
  • 9. * Operator The multiplication operator is used to calculate the product of two numbers.
  • 10. Example Operand 1 Operand 2 Operator Output 8 8 64
  • 11. / Operator The division operator is used to calculate the quotient of two numbers.
  • 12. Example Operand 1 Operand 2 Operator Output 8 4 2
  • 13. ^ Operator The exponentiation operator raises a number to the power of an exponent.
  • 14. Example Operand 1 Operand 2 Operator Output 8 2 64
  • 15. % Operator The modulus operator divides two integers and returns the integer remainder.
  • 16. Example Operand 1 Operand 2 Operator Output % mod 8 5 3