Referencing to this site: cplusplus.com/reference/clibrary/cstdio/printf.html
Looks as if
Code:
// %[flags][width][.precision][length]specifier
// the flag specifier isn't used in either of these
// %*d the * means to take the next argument
// in this case width to printf as size of field
10 printf("The number is:%*d:\n", width, number);
printf("Now enter a width and a precision:\n");
scanf("%d %d", &width, &precision);
// %*.*f... * means same as above take width as size of field
// .* meaning to take the following argument precision to printf
// to set the precision of the number specified by the variable set by the user
13 printf("Weight = %*.*f\n", width, precision, weight);