Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4. //int a = 14, b = 150, с = 90, l = 0;
  5. int l;
  6. cin >> l;
  7. int la = l % 14;
  8. int lb = l % 90;
  9. int lc = l % 150;
  10. if (la <= lc && la <= lb)
  11. cout << "parrot" << endl;
  12. if (lb <= la && lb <= lc)
  13. cout << "monkey" << endl;
  14. if (lc <= la && lc <= lb)
  15. cout << "elephant";
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement