Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a, b, c, d, e, f;
- cin >> a >> b >> c >> d >> e >> f;
- if(a==1) cout << "Is tasko A i taska B patekti galima.";
- else if(b==1 && e==1) cout << "Is tasko A i taska B patekti galima.";
- else if(c==1 && f==1) cout << "Is tasko A i taska B patekti galima.";
- else if(c==1 && d==1 && e==1) cout << "Is tasko A i taska B patekti galima.";
- else if(b==1 && d==1 && f==1) cout << "Is tasko A i taska B patekti galima.";
- else cout << "Is tasko A i taska B patekti negalima.";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment