Introduction
Formatting output helps you show information clearly and nicely on the screen. It makes numbers, text, and other data easier to read.
When you want to show a number with a fixed number of decimal places.
When you want to add spaces or align text in columns.
When you want to include variables inside a message.
When you want to display data in a specific style, like hexadecimal or binary.