How can i change prinf("%.2f") in C++ : How can i change prinf("%.2f") in C++ so that it will also diplay upto two decimals 

Aslo for this to change in c++
Printf("-6c%14d%20.2f",'A',val1,val2);
I have declared val1,val2 in double

