Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. int R, G, B;
  7. cin >> R >> G >> B;
  8.  
  9. if(R <= 255 && G <= 255 && B <= 255 && R * G * B >= 0){
  10. if((abs(R - G)<10 && abs(B - G)<10 && abs(B - R)<10)){
  11. cout <<"GRI";
  12. return 0;
  13. }
  14. else
  15. cout << "CULOARE";
  16. }
  17. else
  18. cout<<"NU E CULOARE";
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement