The operators used to perform mathematical operations are called arithmetic operators.
Addition:
Used to perform assembly related work.
void main()
{
int x=10;
int y=5;
printf("X+Y=%d",x+y);
}
Subtractor:
Used to perform subtraction related work.
void main()
{
int x=10;
int y=5;
printf("X-Y=%d",x-y);
}
Multiplication:
It is used to do multiplication related work.
void main()
{
int x=10;
int y=5;
printf("X*Y=%d",x*y);
}
Division:
It is used to perform operations related to division.
void main()
{
int x=10;
int y=5;
printf("X/Y=%d",x/y);
}
Modulus:
The function of module operator is to give us the remainder value obtained during division.
void main()
{
int x=10;
int y=5;
printf("Remainder value=%d",x%y);
}