#include <stdio.h>
int main(int)
{
int value = 5;
printf ("%01d\n", value);
printf ("%02d\n", value);
printf ("%03d\n", value);
printf ("%04d\n", value);
}
Printf Tip0066 Zero_pad.c
Published: at 08:01 PM
#include <stdio.h>
int main(int)
{
int value = 5;
printf ("%01d\n", value);
printf ("%02d\n", value);
printf ("%03d\n", value);
printf ("%04d\n", value);
}