C program - Addition,Subtraction,Multiplication and Division of two number
Write a program that input two numbers and prints addition,subtraction,multiplication and division.
printf("Enter number a=");
printf("Enter number b=");
sum=a+b; //This will perform addition.
sub=a-b; //This will perform subtraction.
mul=a*b; //This will perform multiplication.
div=a/b; //This will perform division.
printf("Sum = %d \n",sum);
printf("Sub = %d \n",sub);
printf("Mul = %d \n",mul);
printf("Div = %d \n",div);
Enter number a=5
Enter number b=3
Sum = 8
Sub = 2
Mul = 15
Div = 1