PRINT ("---- 7 Times Table ----")

FOR number FROM 1 TO 10:
PRINT 7 * number

This code uses:
SelectionSequencingIteration

1 answer

The code provided primarily uses iteration.

Here's a breakdown of the concepts involved:

  • Sequencing: This is the straightforward execution of code statements in the order they appear. The line that prints the header ("---- 7 Times Table ----") is an example of sequencing, as it executes first.

  • Iteration: This involves repeating a block of code multiple times. In your example, the loop iterates over the numbers from 1 to 10, executing the print statement for each number. This is a classic case of iteration.

  • Selection: This involves making decisions based on conditions (e.g., using if statements). Your code does not include any decision-making logic, so it does not utilize selection.

Thus, the main programming concept used in your code is iteration through the FOR loop that goes from 1 to 10.