0

Taquilla en C++: Me convierte el resultado en un entero cuando quiero que lo conserve float. ÂżCuĂĄl es el fallo?

Problema con el entero https://code.sololearn.com/cxIsIy91H440/?ref=app

24th May 2022, 10:52 AM
Alejandro GonzĂĄlez GĂłmez
Alejandro GonzĂĄlez GĂłmez - avatar
3 Answers
+ 2
// Try it pago = 50 * (100 - (float)menor) / 100; printf("\n %.2f \n", pago);
24th May 2022, 11:16 AM
SoloProg
SoloProg - avatar
+ 1
Thanks a lot, SoloProg. It has been very helpfull
24th May 2022, 11:47 AM
Alejandro GonzĂĄlez GĂłmez
Alejandro GonzĂĄlez GĂłmez - avatar