Write down a pair of integer whose a) sum is -5 b) difference is -7 c) difference is -1 d) sum is 0.
Answers
Answered by
0
Step-by-step explanation:
Program to Calculate Sum and Difference between Integers
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b;
clrscr();
printf("Enter two integers whose sum and difference to be calculated\n");
scanf("%d%d",&a,&b);
printf("The sum of two Integers is = %d",sum(a,b));
printf("\nThe difference of two Integers is = %d",diff(a,b);
getch();
return 0;
}
To Run this Program Copy it in text editor and save as .c
Then double click on it and then it will get opened in your compiler.
Click on run.
Answered by
0
Answer:
would you like to be my friend
Similar questions