Share
Explore BrainMass

Defining Programming Statement Types

Please help with the following problem.

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)
documentation

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.

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

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

Solution Summary

The following posting helps define concepts related to computer programming. The solution provides 311 words to explain I/O (input/output), Calculation (equations), selection (conditional), repetition (iteration) and documentation in computer science.

$2.19