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
2 Respostas
+ 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);