Search This Blog

Thursday, March 5, 2015

C Program to Subtract two Numbers| C Program to Subtract two variables, numerals

 C Program for Subtraction of two numbers. C program for Subtraction of two integers, variables, numerals

void main()
{
int  i, j,k;
printf("Enter the two numbers to be Subtracted--");
scanf("%d%d",&i,&j);
if (i>j)
k=i-j;
else
k=j-i;
printf("\nSubtraction of %d and %d is =%d",i,j,k);
}


No comments:

Post a Comment