Professional Documents
Culture Documents
Print as:
%d – decimal integer.
%6d – as decimal integer at least 6 characters wide
%f – floating point.
%6f - as floating point at least 6 characters wide
%.2f- as floating point 2 characters after decimal point
%6.2f- as floating point at least 6 wide and 2 after
decimal point.
%o – for octal
%x – hexadecimal
%c – character
%s – character string
%% - itself.
Symbols constant:
Name – the same form as a variable name
Replacement text – can be any sequence of characters.
Text stream – is a sequence of characters divided into
line.