lec 2operators introduction to operators

FatimaAijaz6 4 views 9 slides Mar 03, 2025
Slide 1
Slide 1 of 9
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9

About This Presentation

Lecture 2


Slide Content

Chapter # 2 operators made by : Engr.Hira Zahid

OPERATORS Words or symbols that cause a program to do some thing to the variables. Arithmetic operator Assignment operator Conditional operator Relational operator Increment/decrement operator Logical operator

AIRTHMATIC operator

ASSIGNMENT operator

INCREMENT & DECREMENT operator

CONDITIONAL / TERNARY operator

Relational operator

Logical operator

Logical operators GENERAL STRUCTURE If( var (condition) && var (condition ) ) do this; (if both conditions are true) ------- ------- e lse d o this;(if either one false) --------
Tags