+ 2
whatd does the width in %5.2f?
i ve seen in the explanation this %[-] [widht].... and i tried to change the width from %5.2f and i got the same output
2 Answers
+ 4
5 or more numbers before the decimal point and two after it.
+ 1
here is a quick reference for troubleshooting your issue...
https://en.cppreference.com/w/cpp/io/c/fprintf