C Program To Subtract Two Numbers

PROGRAM :

#include<stdio.h>
int main()
{
int a,b,c;
printf("Enter two number to Subtract \n");
scanf("%d%d",&a,&b);
c = a - b;
printf("\nDifference between %d and %d is %d",a,b,c);
}




OUTPUT :

Enter two number to Subtract
5
2
Difference between 5 and 2 is 3

Post a Comment

0 Comments