Untitled

 avatar
unknown
plain_text
10 months ago
378 B
16
Indexable
#include <iostream>

using namespace std;

int R,G,B;

int main()
{
    cin >> R >> G >> B;

    if  (R<0 || R>255 || G<0 || G>255 || B<0 || B>255) {
        cout << "NU E CULOARE";
    }
    else if ((R-G<=10) && (R-B<=10) && (G-B<=10) && (B-G<=10) && (B-R<=10)) {
        cout << "GRI";
    }
    else {
        cout << "CULOARE";
    }

    return 0;
}
Editor is loading...
Leave a Comment