How can i change `printf("%.2f")` in C++ so that it will also display upto two decimals 
Using cout 

Also for this to change in c++ to have blank space just like in c 
`printf("-6c%14d%20.2f",'A',val1,val2);`
I have declared val1,val2 in double