C Language| C Programs | Data structures Basics |C Language Example Programs
C Language , C Programs, Data Structures, Simplified C programs, easy C programs
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment