If it is less than the value you set, please fill it with spaces, for example:
int a = 123;
printf("%5d,I ");
The output is 123 (right-aligned, notice that there are two spaces in front);
printf("%-5d,I ");
The output is 123 (left-aligned, note that there are two spaces behind it);
Handmade, hope to adopt, don't understand can ask. . .