Arithmetic operators in c

Arithmetic operators are used to performing arithmetic operations like addition subtraction. this is used for constants and variables

OperatorMeaning
+addition
-subtraction
*multiplication
/division
%remainder after division( modulo division)

example:

//codeskulls
#include
int main()
{
int a = 5,b = 10, c;
c = a+b;
printf("a+b = %d \n", c); //addition
c = a-b;
printf("a-b = %d \n", c); //subtraction
c = a*b;
printf("a*b = %d \n", c); //multiplication
c=a/b;
printf("a/b = %d \n", c); //divison
c=a%b;
printf("Remainder when a divided by b = %d \n", c); //remainder
return 0;
}
//codeskulls

output:

a+b = 15
a-b = -5
a*b = 50
a/b = 0
Remainder when a divided by b = 5
Press any key to continue . . .