Hi all,

How to display single digit int as four digit in C++.For example, i want to display the digit 12 as 0012 and 8 as 0008.