+ 4
It is displayed 180 Instead of 179 value. What I have to do?
The first of the three values are wrong! What I have to correct? https://code.sololearn.com/czO52Gc48x2K/?ref=app
2 Antworten
+ 6
A͢J Thank you very much 👍
+ 2
Egor Tonchev(EGO)
Use round instead of ceil
int a = round (R);
int b = round (G);
int d = round (B);
printf("%d,%d,%d", a, b, d);