use long long double, SetPrecision(12)-sets the resolution of the variable ,fixed- cancels scientific notation.
cout<<setprecision(12)<<fixed;
use long long double, SetPrecision(12)-sets the resolution of the variable ,fixed- cancels scientific notation.