170k views
0 votes
Perform OR operation between the following

values:
a. Decimal 15 & Decimal 105
b. Decimal 75 & Decimal 5

User Cheche
by
7.7k points

1 Answer

4 votes

Final answer:

Performing the OR operation between two decimal values can be done by converting them to binary and performing the operation bitwise.

Step-by-step explanation:

The OR operation is a logical operation that returns true if at least one of the values is true. In decimal notation, we can perform the OR operation by converting the values to binary and performing the operation bitwise. For example:

a. Decimal 15 is equivalent to binary 1111 and decimal 105 is equivalent to binary 1101001. Performing the OR operation between 1111 and 1101001 gives us the result 1111101, which is equivalent to decimal 125.

b. Decimal 75 is equivalent to binary 1001011 and decimal 5 is equivalent to binary 101. Performing the OR operation between 1001011 and 101 gives us the result 1001011, which is equivalent to decimal 75.

User Hildogjr
by
7.1k points