Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
The result should be 2.0 6.0 but it's 2.00000 6.00000 in C. what to do?
The result should be 2.0 6.0 but it's 2.00000 6.00000 in C. what to do?
1 Resposta
+ 4
Customize number of digits past the decimal point by specifying precision. Look particularly at the section covering precision in the following page
http://www.cplusplus.com/reference/cstdio/printf/