Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int a, b, c, d, e, f;
  7. int cont1 = 0, cont2 = 0;
  8. cin >> a >> b >> c >> d >> e >> f;
  9.  
  10. if(a == 1 or b == 1 or c == 1) cont1++;
  11. if(a == 2 or b == 2 or c == 2) cont1++;
  12. if(a == 3 or b == 3 or c == 3) cont1++;
  13.  
  14. if(d == 1 or e == 1 or f == 1) cont2++;
  15. if(d == 2 or e == 2 or f == 2) cont2++;
  16. if(d == 3 or e == 3 or f == 3) cont2++;
  17.  
  18. if(cont1 >= cont2)
  19. {
  20. cout << "Restaurante da dona Joana\n";
  21. if(cont1 == 3) cout << "Extremamente satisfeito\n";
  22. else if(cont1 == 2) cout << "Satisfeito\n";
  23. else if(cont1 == 1) cout << "A desejar\n";
  24. else cout << "Decepcionado\n";
  25. }
  26. else
  27. {
  28.  
  29. cout << "Self-Service do seu Joaquim\n";
  30. if(cont2 == 3) cout << "Extremamente satisfeito\n";
  31. else if(cont2 == 2) cout << "Satisfeito\n";
  32. else if(cont2 == 1) cout << "A desejar\n";
  33. else cout << "Decepcionado\n";
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement