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,
- Truth-Table :-
- Logic Symbol of 2-input OR Gate :-
- 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.
- Experimental-data :-
- Precaution & discussion :- i> The continuity of the connecting terminals should be checked before going.
Y = A + B
Truth-Table of OR Gate
Logical symbol of 2-input OR Gate
OR-Gate's IC-base diagram
2. Set-up OR Gate circuit and feed all the input combinations.
3. Observe the output corresponding to input combinations and enter it in the Truth-Table.
ii> It should be care that the values of the components of the circuit is does not exceed to their ratings(Maximum value).
iii> Before, the circuit connecting, it should be check out, working condition of all the components.
Comments
Post a Comment