Q. If sum of two integer is 14 and if one of them is 8 then find other integer. Ans: Well, this is very simple. Simply, one integer is 8 and sum of two integers is 14. So, we need to subtract the number 8 from their sum of 14 to get the second number. So, the second number is: 14 - 8 = 6 C-Program of this task Code---> #include<stdio.h> int main () { int num1 = 8 , num2 , sum = 14 ; num2 = sum - num1 ; printf ( "The second number is: %d" , num2 ); return 0 ; }
OR Gate Introduction :- The OR Gate performs logical addition, commonly known as OR function. The OR Gate has two or more inputs and only one output. The operation of OR Gate is such that a HIGH (1) on the output is produced when any of the input is HIGH (1). The output is LOW (0) only when all the inputs are LOW (0). Logic Expression :- If A and B are the input variables of an OR Gate and Y is it's output, then, Y = A + B Truth-Table :- Truth-Table of OR Gate Logic Symbol of 2-input OR Gate :- Logical symbol of 2-input OR Gate OR Gate's IC-base diagram :- OR-Gate's IC-base diagram Apparatus :- Bread-board, LED-light, Battery(Power-Supply), IC-7432, Multimeter and Resistance. Procedure :- 1. Verify whether all the wires and components are in good condition. 2. Set-up OR Gate circuit and feed all the i