About Me

header ads

Program to Subtract two Numbers

Program to Subtract two Numbers

#include <stdio.h>
#include<conio.h>
void main()
{
     int a,b,sub;
     printf(“Enter two numbers\n”);
scanf(“%d%d”,&a,&b);
sub=a-b;
printf(“\nSubtraction=%d”,sub);
getch();

}

OUTPUT:
Enter two numbers
40
6
Subtraction=34