Computer Science, asked by SharmaTushar, 1 year ago

write a program to input three integers and find the difference between their sum and difference​

Answers

Answered by shekhar73
1

/*C program to find difference of two numbers.*/

#include <stdio.h>

int main()

{

int a,b;

int diff;

printf("Enter first number: ");

scanf("%d",&a);

printf("Enter second number: ");

scanf("%d",&b);

// check condition to identify which is largest number

if( a>b )

diff=a-b;

else

diff=b-a;

printf("\nDifference between %d and %d is = %d",a,b,diff);

return 0;

}


shekhar73: mark as brainliest
Similar questions