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>=0&&G>=0&&B>=0&&R<=255&&G<=255&&B<=255){
- if(abs(R-G)<=10&&abs(R-B)<=10&&abs(G-B)<=10)
- cout << "GRI";
- else
- cout << "CULOARE";
- }
- else cout << "NU E CULOARE";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement