Substract two number
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,res;
clrscr();
printf("Enter the value of a:");
scanf("%d",&a);
printf("\nEnter the value of b:");
scanf("%d",&b);
res=a-b;
printf("Result=%d",res);
getch();
}
Output
Enter the value of a :9
Enter
the value of b :6
Result : 3
|
Comments
Post a Comment