It is displayed 180 Instead of 179 value. What I have to do? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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