Description:This program is used to simply subtract two numbers entered by user.
Program:
#include<stdio.h>
#include<conio.h>
main()
{
int a,b,c;
clrscr();
printf("Enter First Number: ");
scanf("%d",&a);
printf("\nEnter Second Number: ");
scanf("%d",&b);
c=a-b;
printf("\nSubstraction is %d",c);
getch();
}
Program:
#include<stdio.h>
#include<conio.h>
main()
{
int a,b,c;
clrscr();
printf("Enter First Number: ");
scanf("%d",&a);
printf("\nEnter Second Number: ");
scanf("%d",&b);
c=a-b;
printf("\nSubstraction is %d",c);
getch();
}