0% found this document useful (0 votes)
2 views

arithmetic operators

The document outlines various arithmetic operators, including addition, multiplication, division, modulus, assignment, equality, and not equality. Each operator is described with its function and accompanied by an example of its usage in expressions. The assignment was completed by Abhishek Vishwakarma on September 15, 2022.

Uploaded by

abhishekvish36
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

arithmetic operators

The document outlines various arithmetic operators, including addition, multiplication, division, modulus, assignment, equality, and not equality. Each operator is described with its function and accompanied by an example of its usage in expressions. The assignment was completed by Abhishek Vishwakarma on September 15, 2022.

Uploaded by

abhishekvish36
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Name :- Abhishek Vishwakarma

Assignment date:- 14th September 22.


Submission Date :- 15th September 22.
Topics :- arithmetic operators.

1. Operator :- + Addition

Description :- Adds value on either side of the operator

Example :- `expr $a + $b`

2. Operator :- Multiplication

Description :- Multiplies values on either side of the operator

Example :- `expr $a \* $b`

3. Operator :- Division

Description :- Divides left hand operand by right hand operand

Example :- `expr $b / $a`


4. Operator :- Modulus

Description :- Divides left hand operand by right hand operand and returns
remainder

Example :- `expr $b % $a`

5. Operator :- = (Assignment)

Description :- Assigns right operand in left operand

Example :- a = $b would assign value of b into a

6. Operator :- == (Equality) & != (Not Equality)

Description :- Compares two numbers, if both are same then returns true &
Compares two numbers, if both are different then returns true.

Example :- [ $a == $b ] would return false.


[ $a != $b ] would return true.

You might also like