C program to perform basic arithmetic operations i.e. Addition, Subtraction, Multiplication and Division into minimum two numbers. Numbers are assumed to be integers or float (Real) and will be entered by the user or making a constant it means values assigned in the programs.
C Programming Code for Subtraction
#include<conio.h>
#include<stdio.h>
void main()
{
int a,b,c;
printf("\n Enter the first number ");
scanf("%d",&a);
printf("\n Enter the second number ");
scanf("%d",&b);
c=a-b;
printf("\n Subtraction=%d",c);
getch();
}
Output:-
