Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- //int a = 14, b = 150, с = 90, l = 0;
- int l;
- cin >> l;
- int la = l % 14;
- int lb = l % 90;
- int lc = l % 150;
- if (la <= lc && la <= lb)
- cout << "parrot" << endl;
- if (lb <= la && lb <= lc)
- cout << "monkey" << endl;
- if (lc <= la && lc <= lb)
- cout << "elephant";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement