in Education by
write a program to input three integers and find the difference between their sum and difference Select the correct answer from above options

1 Answer

0 votes
by
/*C program to find difference of two numbers.*/ #include 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; }

Related questions

0 votes
    2 Write an algorithm to input two numbers and find their sum and difference Select the correct answer from above options...
asked Nov 28, 2021 in Education by JackTerrance
0 votes
    write an if statement program in java to find the smallest of three given integers using min() method of the Math ... I will report. Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    write a program in python to obtain 3 numbers and print their sum. Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    How to write a program in JAVA to print the sum of ASCII values of a particular word input ? Select the correct answer from above options...
asked Dec 28, 2021 in Education by JackTerrance
0 votes
    Write an if statement to find the smallest of three given integers using min() method of the Math class. Plz solve this quickly.. Select the correct answer from above options...
asked Dec 20, 2021 in Education by JackTerrance
0 votes
    write a C program to Read a number.Find sum of digit at even position in a number and multiplication of digit ... position in a number. Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    write a C program to Read a number . find sum of digit at even position in a number and multiplication of ... position in a number. Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    write a program to display and find the sum of any ten natural number. Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    write a program to display and find the sum of any ten natural number. Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    Out of 3n consecutive integers, there are selected at random. Find the probability that their sum is divisible by 3. A. n ... 2) 3(n-1) Select the correct answer from above options...
asked Nov 15, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to find the area and perimeter of a square and rectangle. Store side in s , length as ... USE ANY INPUT METHOD Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    write a program to find the simple intrest, if we input principal, rate, time… formula:si=pxrxt/100 Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    java program to input any string then print each word along with their length Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    Write a program Using random number generation create a file of 10000 integers in the range 1 to 20000 Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    WAP in java to input 2 numbers from user and print their difference (Always Positive). Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
...