Quote:
What should I do to remove preceding '0' for numbers below or equal to 9?
Yesterday you ask how to enforce a leading '0' for values below 10, and you got the code you are using now.
No leading '0' is just default behavior.
Try to replace
cout << setfill('0') << setw(2) << a << ".";
with
cout << a << ".";