+ 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

19th Mar 2022, 5:42 AM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
2 Antworten
+ 6
A͢J Thank you very much 👍
19th Mar 2022, 6:28 AM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
+ 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);
19th Mar 2022, 6:08 AM
A͢J
A͢J - avatar