Mathematical operations

C program for performing mathematical operations (Addition, Substraction, Multiplication, and Division).

#include <stdio.h>
void main(){
  int a=5,b=3;// Here we have declared that variables a and b are integer
  int addition,substraction,multiplication,division,remainder; // Declared four variables for   four operations
  addition = a + b ;// It shows that we are storing value of a+b in addition
  substraction = a - b ;
  multiplication = a * b ;
  division = a / b ;
  remainder = a % b ;

  printf("addition is %d\n",addition); // %d is formal specifier indicate integer
  printf("substraction is %d\n",substraction);// \n is used to print next printf on new line
  printf("multiplication is %d\n",multiplication);
  printf("division is %d\n",division);
  printf("remainder is %d\n",remainder);

Output :