Question
design with C++
. Design a circuit to take input signals P, Q, and R and out- put a 1 if, and only if, P and have the same value and and R ha
0 0
Add a comment Improve this question Transcribed image text
Answer #1


I provided code for above circuit:

#include <iostream>
using namespace std;

int main() {
    int p,q,r;
    cout << "enter the input signals :" << endl ;
    cin >> p;
    cin >> q;
    cin >> r;

    if(p==q){
        if (q!=r){
           cout << "output :" << 1 << endl;
        }
        else{
           cout << "output :" << 0 << endl;
        }
    }
    else{
        cout << "output :" << 0 << endl;
    }
   return 0;
}

if you have any queries regarding code ,please ask me at comment section.

please give like.

thank you.

Add a comment
Know the answer?
Add Answer to:
design with C++ . Design a circuit to take input signals P, Q, and R and...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT