Program to find difference of 2 numbers.

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,sub;
clrscr();
printf("Enter two numbers:");
scanf("%d %d", &a, &b);
sub=a-b;
printf("\nDifference= %d", sub);
getch();
}

Post a Comment

0 Comments