Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main() {
- int R, G, B;
- cin >> R >> G >> B;
- if(R <= 255 && G <= 255 && B <= 255 && R * G * B >= 0){
- if((abs(R - G)<10 && abs(B - G)<10 && abs(B - R)<10)){
- cout <<"GRI";
- return 0;
- }
- else
- cout << "CULOARE";
- }
- else
- cout<<"NU E CULOARE";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement