Page

Sunday, 17 June 2018

program for subtraction in c

#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
int a, b , sub;
printf("enter the value a:");
scanf("%d",&a);
printf("enter the value b:");
scanf("%d",&b);
(sub=a-b);
printf("the sub of given number is:");
printf("%d",sub);
getch();
return(0);
}

No comments:

Post a Comment