The OR logic gate outputs a 1 if either of the two inputs are 1, otherwise it
Fantastic news! We've Found the answer you've been seeking!
Question:
The OR logic gate outputs a 1 if either of the two inputs are 1, otherwise it will output a 0.
For example:
If the two inputs are 0 and 1 then it will output a 1
If the two inputs are both 0 then it will output a 0
Write a program that will output the result of performing an OR logic gate
Your program should:
Keep asking the user to enter two values until they enter two values, each of which must be either a 0 or a 1
Calculate the correct output from an OR gate using the two inputs that have been entered
Output the result of the OR gate
Related Book For
Logic And Computer Design Fundamentals
ISBN: 9780133760637
5th Edition
Authors: M. Morris Mano, Charles Kime, Tom Martin
Posted Date: