answersLogoWhite

0


Best Answer

start

read a

read b

c=a-b

print c

end

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Pseudocode for subtraction of two binary numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Other Math

How do you perform arithmetic operations on binary numbers?

There are a few rules to perform arithmetic operations in binary numbers. According to those rules you can add or subtract binary numbers. There are only two arithmetic operations used in binary numbers, they are addition and subtraction.


Explain when an binary operation is commutative?

when we add and substract any number * * * * * "substract" is not a word, and in any case, subtraction is not commutative. A binary operation ~, acting on a set, S, is commutative if for any two elements x, and y belonging to S, x ~ y = y ~ x Common binary commutative operations are addition and multiplication (of numbers) but not subtraction nor division.


What is the commutative property in math?

The commutative property of a binary operator states that the order of the operands does not affect the result. Thus x ^ y = y ^ x where ^ is the binary operator. Addition and multiplication of numbers are two common operators that are commutative. Subtraction and division are two common ones that are not commutative.


What are to brinary numbers?

The only two binary numbers are 0 and 1.


Which sets of numbers are closed under subtraction?

To be closed under an operation, when that operation is applied to two member of a set then the result must also be a member of the set. Thus the sets ℂ (Complex numbers), ℝ (Real Numbers), ℚ (Rational Numbers) and ℤ (integers) are closed under subtraction. ℤ+ (the positive integers), ℤ- (the negative integers) and ℕ (the natural numbers) are not closed under subtraction as subtraction can lead to a result which is not a member of the set.

Related questions

How do you perform arithmetic operations on binary numbers?

There are a few rules to perform arithmetic operations in binary numbers. According to those rules you can add or subtract binary numbers. There are only two arithmetic operations used in binary numbers, they are addition and subtraction.


What type of operation are addition and subtraction?

Binary (you operate on two numbers to arrive at one number). Mutual Inverses.


Are addition and subtraction variables?

No, they are binary operators. Two numbers (or variables) are combined, according rules of operation to give a single answer.


What is a binary operation?

A binary operator is simply an operator that works with two operands (for example, two numbers). The binary operator is usually written between the two operands. Examples include the familiar operations of addition, subtraction, multiplication, or division - for example, in: 2 + 3 the "plus" is the binary operator, which works on the two numbers written on either side of it. What is an operator: Basically a function (calculation rule), written in a special way.


What is the distributive property of subtraction?

The distributive property of subtraction states that when subtracting a number from the sum of two other numbers, you can subtract the same number from each of the two numbers separately, and then subtract the two results. This can be represented as: a - (b + c) = (a - b) + (a - c).


What is binary operation?

A binary operator is simply an operator that works with two operands (for example, two numbers). The binary operator is usually written between the two operands. Examples include the familiar operations of addition, subtraction, multiplication, or division - for example, in: 2 + 3 the "plus" is the binary operator, which works on the two numbers written on either side of it. What is an operator: Basically a function (calculation rule), written in a special way.


How do you add and subtract the binary number system?

You do it exactly like decimal subtraction, and when needed you borrow from the next higher place digit, however remember you borrow 2 everytime and not 10. Some people convert the two binary numbers into decimal, do the subtraction and then convert the result back to binary. Following is an example of binary subtraction. 1001 0110 ____ 0011 ____ I started explaining the borrowing process in words but it gets confusing. Please relate it to the borrowing process in decimal.


What are the factors of subtraction?

Finding the difference of two numbers is known as subtraction.


What is the example of binary operator?

There are many: addition, subtraction, multiplication and division are the most common. Each of these operators acts on two numbers to produce a third (which may not be different).


Explain when an binary operation is commutative?

when we add and substract any number * * * * * "substract" is not a word, and in any case, subtraction is not commutative. A binary operation ~, acting on a set, S, is commutative if for any two elements x, and y belonging to S, x ~ y = y ~ x Common binary commutative operations are addition and multiplication (of numbers) but not subtraction nor division.


What two numbers represent a binary digit?

The only two numbers that represent a binary digit are 0 and 1


Algorithm for subtraction of two numbers?

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