0% found this document useful (0 votes)
6 views9 pages

Lecture 04

Uploaded by

shayansarker07
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)
6 views9 pages

Lecture 04

Uploaded by

shayansarker07
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

Arithmetic Operators

Assignment Operators

1. Simple Assignment Operator: The Simple Assignment


Operator is used with the “=” sign where the left side consists
of the operand and the right side consists of a value. The value
of the right side must be of the same data type that has been
defined on the left side.

2. Compound Assignment Operator: The Compound Operator


is used where +,-,*, and / is used along with the = operator.
Arithmetic Compound Assignment Operators

This version uses the += compound assignment operator.


Increment and Decrement

These operators are unique in that they can appear both in


postfix form where they follow the operand as just shown,

and prefix form, where they precede the operand


Relational Operators
Conditional Operator
Boolean Logical Operators
Output-

You might also like