Guest User

Keliai

a guest
Dec 31st, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int a, b, c, d, e, f;
  8.  
  9.     cin >> a >> b >> c >> d >> e >> f;
  10.  
  11.     if(a==1) cout << "Is tasko A i taska B patekti galima.";
  12.     else if(b==1 && e==1) cout << "Is tasko A i taska B patekti galima.";
  13.     else if(c==1 && f==1) cout << "Is tasko A i taska B patekti galima.";
  14.     else if(c==1 && d==1 && e==1) cout << "Is tasko A i taska B patekti galima.";
  15.     else if(b==1 && d==1 && f==1) cout << "Is tasko A i taska B patekti galima.";
  16.     else cout << "Is tasko A i taska B patekti negalima.";
  17.  
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment