#include<bits/stdc++.h>using namespace std;main(){double a=2.9939; cout<<fixed<<setprecision(2)<<a;printf("%.3f", a);return 0;} ...
#include<bits/stdc++.h>
using namespace std;
main()
{double a=2.9939;
cout<<fixed<<setprecision(2)<<a;printf("%.3f", a);
return 0;
}