Introduction
Input and output let a program talk with people or other programs. Input is how a program gets information, and output is how it shows results.
When you want to ask a user for their name and greet them.
When a program needs to read data from a file or keyboard.
When you want to show results or messages on the screen.
When your program needs to send data to another program or save it.
When you want to make your program interactive and useful.