0% found this document useful (0 votes)
1 views26 pages

Introduction To Operators

The document provides an overview of different types of operators used in mathematics and programming, including arithmetic, comparison, and logical operators. It lists specific symbols and their functions, such as addition (+), subtraction (-), and logical operations like 'and', 'or', and 'not'. Each operator type is explained with examples to illustrate their usage.

Uploaded by

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

Introduction To Operators

The document provides an overview of different types of operators used in mathematics and programming, including arithmetic, comparison, and logical operators. It lists specific symbols and their functions, such as addition (+), subtraction (-), and logical operations like 'and', 'or', and 'not'. Each operator type is explained with examples to illustrate their usage.

Uploaded by

freejobsupdates4
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Operators

Operators
Task Symbol

● What are
Operators? Addition +

Subtraction -
● Symbols that represent mathematical or logical tasks.

Multiplication *

3+5 Division /

Operand Operator
s
Different Types of Operators

Operators

Arithmetic Operators Comparison Operators Logical Operators


Different Types of Operators

Arithmetic Operators

• Addition +

• Subtraction –

• Multiplication *

• Division /

• Modulo %

• Floor division //

• Exponent **
Different Types of Operators

Arithmetic Operators
Additio -> 3 + 5 + 6 = 14
• Addition + n
Subtraction -> 6 -4 - 2 = 0
• Subtraction –

• Multiplication *

• Division /

• Modulo %

• Floor division //

• Exponent **
Different Types of Operators

Arithmetic Operators
Additio -> 3 + 5 + 6 = 14
• Addition + n
Subtraction -> 6 -4 - 2 = 0
• Subtraction –
Multiplication - 3 * 5 * 6 = 90
• Multiplication * >
5/3 = 1.67
• Division / Division ->

• Modulo %

• Floor division //

• Exponent **
Different Types of Operators

Arithmetic Operators
Additio -> 3 + 5 + 6 = 14
• Addition + n
Subtraction -> 6 -4 - 2 = 0
• Subtraction –
Multiplication - 3 * 5 * 6 = 90
• Multiplication * >
Division -> 5 / 3 = 1.67
• Division /
Modulo -> 5 % 3 =2
• Modulo %
Floor Division - 5 // 3 =1
• Floor division // >

• Exponent **
Different Types of Operators

Arithmetic Operators
Additio -> 3 + 5 + 6 = 14
• Addition + n
Subtraction -> 6 -4 - 2 = 0
• Subtraction –
Multiplication - 3 * 5 * 6 = 90
• Multiplication * >
Division -> 5 / 3 = 1.67
• Division /
Modulo -> 5 % 3 =2
• Modulo %
Floor -> 5 // 3 =1
• Floor division // Division
Exponen -> 5 ** 3 = 125
• Exponent ** t
Different Types of Operators

Comparison Operators

• Less than <

• Less than or Equal to <=

• Equal to ==

• Greater than >

• Greater than or equal to >=

• Not equal to !=
Different Types of Operators
x y
Comparison Operators Less than -> x < y -> ? 3 5

• Less than <

• Less than or Equal to <=

• Equal to ==

• Greater than >

• Greater than or equal to >=

• Not equal to !=
Different Types of Operators
x y
Comparison Operators Less than -> x < y -> True! 3 5

• Less than <

• Less than or Equal to <=

• Equal to ==

• Greater than >

• Greater than or equal to >=

• Not equal to !=
Different Types of Operators
x y
Comparison Operators Less than -> x < y -> ? 17 5

• Less than <

• Less than or Equal to <=

• Equal to ==

• Greater than >

• Greater than or equal to >=

• Not equal to !=
Different Types of Operators
x y
Comparison Operators Less than -> x < y -> False 17 5

• Less than <

• Less than or Equal to <=

• Equal to ==

• Greater than >

• Greater than or equal to >=

• Not equal to !=
Different Types of Operators
x y
Comparison Operators Less than -> x < y 17 5

• Less than < Less than or equal to -> x <= y

• Less than or Equal to <= Equal to -> x == y

• Equal to ==

• Greater than >

• Greater than or equal to >=

• Not equal to !=
Different Types of Operators
x y
Comparison Operators Less than -> x < y 17 5

• Less than < Less than or equal to -> x <= y

• Less than or Equal to <= Equal to -> x == y

• Equal to
==
• Greater than > Greater than -> x > y

• Greater than or equal to >= Greater than or equal to -> x <= y

• Not equal to != Not Equal to -> x != y


Different Types of Operators

Logical Operators

• and

• or

• not
Different Types of Operators

Logical Operators and -> True only if both comparisons are True.

• and

• or

• not
Different Types of Operators
x y

and -> True only if both comparisons are True. 3 7


Logical Operators
x < 5 and y > 8 -->
• and ?

• or

• not
Different Types of Operators
x y

and -> True only if both comparisons are True. 3 7


Logical Operators
x < 5 and y > 8 --> True and
• and False

• or

• not
Different Types of Operators
x y

and -> True only if both comparisons are True. 3 7


Logical Operators
x < 5 and y > 8 --> True and False -->
• and False

• or

• not
Different Types of Operators
x y

and -> True only if both comparisons are True. 3 7


Logical Operators
x < 5 and y > 8 --> True and False -->
• and False
or -> True if either of the comparisons are True.
• or
x < 5 or y > 8 --> True or False
• not
Different Types of Operators
x y

and -> True only if both comparisons are True. 3 7


Logical Operators
x < 5 and y > 8 --> True and False -->
• and False
or -> True if either of the comparisons are True.
• or
x < 5 or y > 8 --> True or False --> True
• not
Different Types of Operators
x y

and -> True only if both comparisons are True. 3 7


Logical Operators
x < 5 and y > 8 --> True and False -->
• and False
or -> True if either of the comparisons are True.
• or
x < 5 or y > 8 --> True or False --> True
• not
not -> True if comparison is False and vice-versa.

not x < 5 --> not True


Different Types of Operators
x y

and -> True only if both comparisons are True. 3 7


Logical Operators
x < 5 and y > 8 --> True and False -->
• and False
or -> True if either of the comparisons are True.
• or
x < 5 or y > 8 --> True or False --> True
• not
not -> True if comparison is False and vice-versa.

not x < 5 --> not True --> False


Summary

Arithmetic Operators
Comparison Operators
Logical Operators
• Addition +
• Less than <
• Subtraction – • and
• Less than or Equal to <=
• Multiplication * • or
• Equal to
== • not
• Division /
• Greater than >
• Modulo %
• Greater than or equal to >=
• Floor division //
• Not equal to !=
• Exponent **
Thank
You

You might also like