why do we have to write in printf numbers like (3.2,-8.5,19.17) in formating output. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why do we have to write in printf numbers like (3.2,-8.5,19.17) in formating output.

In formating output more optional are being taken my qn why do write in printf section like for example printf("Pi=%3.2f",3.14159); printf("Pi=%8.5f",3.14159) whats the use of those numbers(3.2,8.7)and so on thanks

28th May 2020, 12:54 PM
mugisha alain
mugisha alain - avatar
1 Answer
28th May 2020, 12:58 PM
Abhay
Abhay - avatar