[SOLVED]how do i print %0.10f or something like that in a code? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 4

[SOLVED]how do i print %0.10f or something like that in a code?

like in this code, https://code.sololearn.com/chR4TzM0aWMt/#cpp the output should be %0.10f why cant i print this?

15th Oct 2018, 5:16 PM
LONGTIE👔
LONGTIE👔 - avatar
3 Respuestas
+ 4
Replace % with %%.
15th Oct 2018, 5:18 PM
Anna
Anna - avatar
+ 3
just do: printf("%%0.10f why cant i print this?");
15th Oct 2018, 5:18 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 3
Ulisses Cruz Anna geez that was fast. thanks for the answers.
15th Oct 2018, 5:20 PM
LONGTIE👔
LONGTIE👔 - avatar