//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.
#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.