New course! Every coder should learn Generative AI!
Try a free lesson+ 3
C++ decimal
how can i make the output have 2 decimal ? on C++
2 Answers
+ 1
Gitu aja gk tau cupu lo!
+ 6
#include<iomanip>
:
:
:
cout << setprecision(3) << 2.444334 ;
//output: 2.44