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