http://en.wikipedia.org/wiki/Printf#printf_format_placeholders - Wikipedia link for print placeholders. http://www.cplusplus.com/reference/clibrary/cstdio/printf.html is also useful
Mostly in simple form, this is% [width]. [precision] [type]. Width allows you to make sure that the variable being printed has at least a certain length (useful for tables, etc.). Accuracy allows you to specify the accuracy at which a number is printed (for example, decimal digits, etc.), and informs C / C ++ about which variable you specified (character, integer, double, etc.).
Hope this helps
UPDATE:
To clarify the use of your examples:
printf( "%10.1f %10.2\n", radius, area );
% 10.1f (referring to the first argument: radius) means that it is 10 characters long (i.e. pad with spaces) and prints it as a float with one decimal place.
% 10.2 (with reference to the second argument: region) means that it is 10 characters long (as indicated above) and prints with two decimal places.
source share