Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

5.

1 INPUT AND OUTPUT DATA


Data entry consists of placing data from some input device (keyboard, disk, etc.) in main memory
so that the computer, according to a program, performs a task.

Data output consists of sending data (usually the result of processing) from main memory to an
output device (display, printer, disk, etc.).

The following figure shows a conceptual diagram of the computer equipment.

There are 2 types of control structures:

• 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.

You might also like