# Arithmetic Operators in C Language | Examples of Arithmetic Operators

### Arithmetic Operators( + ,- , * , / , % ) :

- Arithmetic operators are used for
__Numeric calculations (or) Arithmetic Calculations.__ - There are Five Arithmetic operators in C language. those are listed below

Operator |
Meaning |
Example |

+ |
Addition |
200 + 100 = 300 |

– |
Subtraction |
200 – 100 = 100 |

* |
Multiplication |
200 * 100 = 20000 |

/ |
Division |
200 / 100 = 2 |

% |
Modulo Division It gives Remainder. |
200 % 100 = 0 |

**+**and

**–**symbols it may Binary operators and Unary Operators. It is depends on Number of Operands.because we have unary

**+ , –**Operators and Binary

**+ , –**Operators.

__Unary + and – operators :__- Unary operators requires only one Operand
- unary operators are used for representing sign of operand.

Ex :

+a —-> a is Positive value.

-b —-> b is Negative value.

- If we didn’t specify any sign before the any Number it is considered as Positive Number.

__Binary + and – Operators :__- These operators are need two operands.
- Binary plus is used for addition.
- Binary minus is used for Subtraction.

__Product Operator :__- It is used to perform Arithmetic Multiplication between given Operands.
- It is also a Binary operator.

__Division Operator :__- It is used to perform the division between two operands and it gives the Coefficient as Result.
- It is also Binary Operator.

__Modulo Division :__- It is used for perform modulus operation it gives remainder as Result.
- It is also a Binary Operator.
- we can not apply modulus operator on Floating point data. It is only for Integers.

### Example :- C program to Perform Arithmetic Operations :

**#include**

**<**

**stdio.h**

**>**

**void main(void)**

**{**

**int a,b;**

**printf(**

**“Enter Value for a :”**

**);**

**scanf(**

**“%d”**

**,&a);**

**printf(**

**“Enter Value for b :”**

**);**

**scanf(**

**“%d”**

**,&b);**

printf(

printf(

**“Sum=%dn”**

**,a+b);**

**printf(**

**“Difference=%dn”**

**,a-b);**

**printf(**

**“Product=%dn”**

**,a*b);**

**printf(**

**“Quotient=%dn”**

**,a/b);**

**printf(**

**“Remainder=%dn”**

**,a%b);**

**}**

### Output :

__Quick Notes :__- All Arithmetic Operators are Binary Operators that means it needs two Operands to perform any operation.
- Unary plus and Minus are Different from Binary plus(Addition Operator) and Binary minus(subtraction Operator).