answersLogoWhite

0

There is nothing to explain much. Here is the code of that kind of application:

#include

int main() {

int firstNum, secondNum, delta = 0;

printf("Please enter first number (a): ");

scanf("%d", &firstNum);

printf("Please enter second number (b): ");

scanf("%d", &secondNum);

delta = firstNum - secondNum;

printf("a - b = %d\n", delta);

return 0;

}

Testing:

Please enter first number (a): 46

Please enter second number (b): 2

a - b = 44

Please enter first number (a): 1

Please enter second number (b): 45

a - b = -44

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What is the group of two addition and two subtraction that uses the same three numbers?

The group of two addition and two subtraction using the same three numbers can be represented as follows: Given numbers (a), (b), and (c), one possible arrangement is ( (a + b) - c + (a - b) ). This expression uses addition and subtraction to combine the same three numbers in different ways, resulting in a calculation that involves each of the numbers.


What are the factors of subtraction?

Finding the difference of two numbers is known as subtraction.


Algorithm for subtraction of two numbers?

read the value A,b store the result of subtraction of a,b in continer subtraction display subtraction


Shell program for gcd of three given numbers?

write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html


When you subtraction tow numbers?

Subtracting two numbers is finding their difference.


What is the operation in which the difference of two numbers are found?

subtraction


Which set of numbers is closed under subtraction?

A set of real numbers is closed under subtraction when you take two real numbers and subtract , the answer is always a real number .


What is the highest prime number which is the sum of two prime numbers and the result from the subtraction of two prime numbers?

5


What are addition subtraction multiplication and division?

addition means when you add two or more numbers together.+ subtraction means you subtract two or more numbers together.- multiplication means when you mutiply two one, or more digit numbers together.x division means when you divide two numbers together./


What is the subtraction of two numbers?

a number lower than the original number


How do you subtract two integers with the same sign?

It is normal subtraction. if the tw numbers are x and y then the subtraction is x-y


When you subtraction two numbers is called?

When you subtract two numbers, the operation is called subtraction. The result of this operation is known as the difference. For example, if you subtract 3 from 7, the difference is 4. Subtraction is one of the four basic arithmetic operations, alongside addition, multiplication, and division.