0% found this document useful (0 votes)
4 views5 pages

Using Operators

Uploaded by

Nelly Chantal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views5 pages

Using Operators

Uploaded by

Nelly Chantal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

USING OPERATORS

What are arithmetic operators


An arithmetic operator is a mathematical function that
takes two operands and performs a calculation on them.
They are used in programming.
Arithmetic operator Description Example
+ Add 6+4=10
- Subtract 4-2=2
/ o Divide 6/3=2
* Multiply
MOD Modulo-Calculates 10 MOD 3= 1
the remainder after (10/3=3 remainder
one value is divided =1
by another.
DIV Calculates the 11 DIV 3
whole number =3(11/3=3.66.So 3
is the quotient.
What is pseudocode?
It is a language used to design code on paper or in a text document.
Pseudocode helps to plan algorithms before creating and texting actual code.
Note
Different programming languages may use different symbols for operators.
For example, python uses:
 The % character for MOD.
 The // characters for DIV

You might also like