SlideShare a Scribd company logo
C# FOR BEGINNERS
LESSON 3
MICHEAL OGUNDERO
CONTACT :
EMAIL – OGUNDEROAYODEJI@GMAIL.COM
Operators: Arithmetic, Relational and Logical Operators
IN THIS LESSON
• ARITHMETIC OPERATORS
• RELATIONAL OPERATORS
• LOGICAL OPERATORS
ARITHMETIC OPERATORS
• These are operators used for performing mathematical operations on numbers. Below is the list
of operators available in C#.
Operator Description
+ Adds two operands
- Subtracts the second operand from the first
* Multiplies both operands
/ Divides the numerator by de-numerator
%
Modulus Operator and a remainder of after an integer
division
++ Increment operator increases integer value by one
-- Decrement operator decreases integer value by one
RELATIONAL OPERATORS
• These are operators used for performing relational operations on numbers. Below is the list of
relational operators available in C#.
Operator Description
== Checks if the values of two operands are equal or not, if yes then
condition becomes true.
!= Checks if the values of two operands are equal or not, if
values are not equal then condition becomes true.
> Checks if the value of left operand is greater than the value of right
operand,if yes then condition becomes true.
< Checks if the value of left operand is less than the value of right
operand,if yes then condition becomes true.
>= Checks if the value of left operand is greater than or equal to the
value of right operand,if yes then condition becomes true.
<= Checks if the value of left operand is less than or equal to the value
of right operand,if yes then condition becomes true.
LOGICAL OPERATORS
• These are operators used for performing Logical operations on values. Below is the list of
operators available in C#.
Operator Description
&& This is the Logical AND operator. If both the operands
are true, then condition becomes true.
|| This is the Logical OR operator. If any of the operands
are true, then condition becomes true.
! This is the Logical NOT operator.
• THANKYOU!

More Related Content

PPTX
Logical Operators C/C++ language Programming
PDF
PPTX
PDF
Python basic operators
PPTX
Operators in java presentation
PPT
PPTX
05 operators
PPTX
Operators in java By cheena
Logical Operators C/C++ language Programming
Python basic operators
Operators in java presentation
05 operators
Operators in java By cheena

What's hot (18)

PPT
Arithmetic operator
PPTX
Oop using JAVA
PPT
PPTX
Opeartor &amp; expression
PPTX
Operators
PPT
Krazykoder operators
PPTX
Python operators
PDF
Credit risk - loan default model
PPTX
Opreator In "C"
PPTX
Operators in c++
PPTX
Operator.ppt
PPTX
Operators in java
PDF
Factors affecting customer satisfaction
PPTX
Pairwise testing technique-Made easy
PPT
operator
PDF
Operators in python
PPTX
Toolkit functions preview
Arithmetic operator
Oop using JAVA
Opeartor &amp; expression
Operators
Krazykoder operators
Python operators
Credit risk - loan default model
Opreator In "C"
Operators in c++
Operator.ppt
Operators in java
Factors affecting customer satisfaction
Pairwise testing technique-Made easy
operator
Operators in python
Toolkit functions preview
Ad

Similar to c# operators (20)

PPTX
Data Types and Operators in Python2.pptx
PPTX
OPERATORS OF C++
PDF
SQL Operator.pdf
ODP
operators in c++
ODP
operators in c++
PPT
4_A1208223655_21789_2_2018_04. Operators.ppt
PPTX
Operators and Expressions
PPT
CBSE Class XI :- Operators in C++
PPTX
happy birthday AILLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
PPTX
The Fundamental Unit of Life (Prashant Kirad).pptxThe Fundamental Unit of Lif...
PPTX
L3 operators
PPTX
L3 operators
PPTX
L3 operators
PPTX
Operators in Python
PDF
C language
PPTX
dizital pods session 3.pptx
PPTX
Java script session 4
PPTX
operat in vb .pptx
PPTX
PostgreSQL (PostgreSQL is a versatile, open-source object-relational database...
Data Types and Operators in Python2.pptx
OPERATORS OF C++
SQL Operator.pdf
operators in c++
operators in c++
4_A1208223655_21789_2_2018_04. Operators.ppt
Operators and Expressions
CBSE Class XI :- Operators in C++
happy birthday AILLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
The Fundamental Unit of Life (Prashant Kirad).pptxThe Fundamental Unit of Lif...
L3 operators
L3 operators
L3 operators
Operators in Python
C language
dizital pods session 3.pptx
Java script session 4
operat in vb .pptx
PostgreSQL (PostgreSQL is a versatile, open-source object-relational database...
Ad

More from Micheal Ogundero (15)

PDF
static methods
PDF
csharp repitition structures
PDF
selection structures
PDF
escape sequences and substitution markers
PDF
A simple program C# program
PPTX
datatypes_variables_constants
PPTX
2 robot types_classifications
PDF
History of robots
PPTX
c# keywords, identifiers and Naming Conventions
PDF
Dictionary and sets-converted
PPTX
Basic Sorting algorithms csharp
PDF
Csharp_List
PDF
c# Enumerations
PDF
csharp_Passing_parameters_by_value_and_reference
PPTX
C# Value Data Types and Reference Data Types
static methods
csharp repitition structures
selection structures
escape sequences and substitution markers
A simple program C# program
datatypes_variables_constants
2 robot types_classifications
History of robots
c# keywords, identifiers and Naming Conventions
Dictionary and sets-converted
Basic Sorting algorithms csharp
Csharp_List
c# Enumerations
csharp_Passing_parameters_by_value_and_reference
C# Value Data Types and Reference Data Types

Recently uploaded (20)

PDF
Computing-Curriculum for Schools in Ghana
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Insiders guide to clinical Medicine.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Classroom Observation Tools for Teachers
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
GDM (1) (1).pptx small presentation for students
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
RMMM.pdf make it easy to upload and study
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Institutional Correction lecture only . . .
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
Computing-Curriculum for Schools in Ghana
STATICS OF THE RIGID BODIES Hibbelers.pdf
Anesthesia in Laparoscopic Surgery in India
Microbial disease of the cardiovascular and lymphatic systems
Sports Quiz easy sports quiz sports quiz
Insiders guide to clinical Medicine.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Classroom Observation Tools for Teachers
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
GDM (1) (1).pptx small presentation for students
102 student loan defaulters named and shamed – Is someone you know on the list?
Complications of Minimal Access Surgery at WLH
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPH.pptx obstetrics and gynecology in nursing
RMMM.pdf make it easy to upload and study
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Institutional Correction lecture only . . .
Microbial diseases, their pathogenesis and prophylaxis
Module 4: Burden of Disease Tutorial Slides S2 2025

c# operators

  • 1. C# FOR BEGINNERS LESSON 3 MICHEAL OGUNDERO CONTACT : EMAIL – OGUNDEROAYODEJI@GMAIL.COM Operators: Arithmetic, Relational and Logical Operators
  • 2. IN THIS LESSON • ARITHMETIC OPERATORS • RELATIONAL OPERATORS • LOGICAL OPERATORS
  • 3. ARITHMETIC OPERATORS • These are operators used for performing mathematical operations on numbers. Below is the list of operators available in C#. Operator Description + Adds two operands - Subtracts the second operand from the first * Multiplies both operands / Divides the numerator by de-numerator % Modulus Operator and a remainder of after an integer division ++ Increment operator increases integer value by one -- Decrement operator decreases integer value by one
  • 4. RELATIONAL OPERATORS • These are operators used for performing relational operations on numbers. Below is the list of relational operators available in C#. Operator Description == Checks if the values of two operands are equal or not, if yes then condition becomes true. != Checks if the values of two operands are equal or not, if values are not equal then condition becomes true. > Checks if the value of left operand is greater than the value of right operand,if yes then condition becomes true. < Checks if the value of left operand is less than the value of right operand,if yes then condition becomes true. >= Checks if the value of left operand is greater than or equal to the value of right operand,if yes then condition becomes true. <= Checks if the value of left operand is less than or equal to the value of right operand,if yes then condition becomes true.
  • 5. LOGICAL OPERATORS • These are operators used for performing Logical operations on values. Below is the list of operators available in C#. Operator Description && This is the Logical AND operator. If both the operands are true, then condition becomes true. || This is the Logical OR operator. If any of the operands are true, then condition becomes true. ! This is the Logical NOT operator.