selection, iteration and sequence
Selection:
Selection is one of the main structures from the three basic structures. A
selection is when a question is asked and depending on the answer, there may
be more than one outcome. Selection structures are also known as if
statements.
If statement is a selection statement that allows more than one possible fow
of control. If statements is also a decision statement. It can also be a true of
false statement.
Iteration:
This is a computer loop that goes thought a group of instructions which get
performed over and over again. Like the selection it’s also one of the main
structures out of the three basic structures. This structure includes the use3s
of two variables which are called the “while and “do while”.
While loop executes a function that is given by the programmer and it will go
on until the function is true. The while loop first tests the given condition then
it performs the function.
Selection:
Selection is one of the main structures from the three basic structures. A
selection is when a question is asked and depending on the answer, there may
be more than one outcome. Selection structures are also known as if
statements.
If statement is a selection statement that allows more than one possible fow
of control. If statements is also a decision statement. It can also be a true of
false statement.
Iteration:
This is a computer loop that goes thought a group of instructions which get
performed over and over again. Like the selection it’s also one of the main
structures out of the three basic structures. This structure includes the use3s
of two variables which are called the “while and “do while”.
While loop executes a function that is given by the programmer and it will go
on until the function is true. The while loop first tests the given condition then
it performs the function.