You have to put point zero in any number to get the result in floating point:
return number * 17 / 100.0; or return number * 17.0 / 100; or both return number * 17.0 / 100.0;
and not
return number * 17 / 100;
En la grada, viva el Betis, gritaré
Luchando por mi equipo, yo me dejaré la piel
Esta noche quebraremos nuestra voz
Perderemos la garganta, esto sí es una afición
no perdemos la esperanza hasta el final y hasta el ultimo segundo no paramos de cantaaar. Soy del BETIS y tengo verde el corazón, yo blanca tengo el alma, vamos BETIS CAMPEÓN
i love codeGym but this time they did a mistake. Is just not fair giving us Epic exercisez WITHOUT things already explained in the theory. They never explained us how if else cycle work or ternary operator works.
I hope they won't repeat this mistake or i'll lose the will of continue
That's a mistake you will see over and over. They actually explain at some point that certain material you will find them ahead but they expect you to do the exercise so that you can also do some research on your own. It helps in learning. When you come across that material you already know one or two things about that topic.
Yeah i noticed since i did lot more
I'm still against this mindset they have, because the beginner would be frustrated, but i still love the way how they explain, i find them better than any books. So i just got used to it
Ty for the answer in any case mate
GO TO FULL VERSION