Code:
 
int i = 0;
cout<< i;
i want to display i as in 000
if my int i = 1, i want it to display 001.

how do i code it so that it works like that?