Explore BrainMass

Defining Programming Statement Types

Define the follow types of statement used in computer programming and how you would utilize them in your programs?

I/O (input/output)
Calculation (equations)
selection (conditional)
repetition (iteration)

Solution Preview

1. I/O (input/output): The program performs input and output functions to retrieve data from the user through the keyboard and other input device, and displays the output of the program to the user through the monitor, printer or other output devices.
In a computer program such as C, the input / output will be done as in the following example.

print("You have entered %d",num);

2. Calculation (equations): Calculation is done by using one or more of the ...

Solution Summary

311 words explain I/O (input/output), Calculation (equations), selection (conditional), repetition (iteration) and documentation in computer science.