Subtraction Program In C

#include<stdio.h>
#include<conio.h>
void main()
{
  int a,b,sub;
  clrscr();
  printf("Enter the value=");
  scanf("%d%d",&a,&b);
  sub=a-b;
  printf("Subtraction=%d",sub);
  getch();
}
Output:-
Enter the value=20
5
Subtraction=15




Previous                                   Next

No comments:

Post a Comment