Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4. int a,b,c,d,e;
  5. cin >> a >> b >> c >> d >> e;
  6. if(d==6||d==7||e==1){
  7. if(e==1&&(d==6||d==7)){
  8. cout << "unhappy" << endl;
  9. return 0;
  10. }
  11. cout << "happy" << endl;
  12. return 0;
  13. }
  14. cout << "unhappy" << endl;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement