keep the leading zero when using int code example Example: print number with leading zeros int n = 123; printf("%0.5d", n); // 00123