Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n;
- cin >> n;
- int digit = n / 10 % 10;
- if (digit == 0) // Why? (Test#3 is fake)
- cout << "None";
- else if (digit % 2 == 0 && digit % 3 == 0)
- cout << "Best";
- else if (digit % 3 == 0)
- cout << "Very good";
- else if (digit % 2 == 0)
- cout << "Good";
- else
- cout << "None";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement