Professional Documents
Culture Documents
5.1 Data Input and Output
5.1 Data Input and Output
Data output consists of sending data (usually the result of processing) from main memory to an
output device (display, printer, disk, etc.).
• Selective
• Repetitive
The former allow you to select a path to be executed from two or more options "once only"; and
the second, allow a set of instructions to be executed "several times" as long as a condition is met.
When writing a control structure, you should keep in mind that correct tabulation will make the
program more readable and easier to understand. Programming languages perform this tabulation
automatically, as long as the beginning and end of each structure are written correctly.