Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

print number with leading zeros

int n = 123;
printf("%0.5d", n); // 00123
 
PREVIOUS NEXT
Tagged: #print #number #leading #zeros
ADD COMMENT
Topic
Name
4+5 =