Skip to content

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);
 }

Ruleaza codul cu cpp.sh


Previous Post
Printf Tip0067 Show_oh.c
Next Post
Printf Tip0065 Int_fmt.c