Hello,
using "%2d" print 2 digits, however when the digit is one number, the 0 is not printed, but is left blank. How can I print 01, 02, 03 etc instead of 1, 2 , 3 etc....?
Thanks
Hello,
using "%2d" print 2 digits, however when the digit is one number, the 0 is not printed, but is left blank. How can I print 01, 02, 03 etc instead of 1, 2 , 3 etc....?
Thanks
Funnily enough, C actually gives you an intuitive way to do this, just use the %02d flag.
My best code is written with the delete key.
Thanks