C program to perform basic arithmetic operations i.e. add , subtract, multiply and divide two numbers. Numbers are assumed to be integers and will be entered by the user.
C programming code
#include<stdio.h>
main()
{
int first, second, add, subtract, multiply, divide;
printf("Enter two integers\n");
scanf("%d%d",&first,&second);
add = first + second;
subtract = first - second;
multiply = first * second;
divide = first / second;
printf("Sum = %d\n",add);
printf("Difference = %d\n",subtract);
printf("Multiplication = %d\n",multiply);
printf("Division = %d\n",divide);
return 0;
}
Output:
Thanks for your feed back we will soon reply you EmoticonEmoticon