Zero Padding or Leading Zeros

Where do you want the number displayed? On serial monitor, LCD?
Below is pseudo code. You need to replace the print with whatever output device you use.

if (number<100) print('0');
if (number<10) print('0');
print(number;