Computer Science, asked by rashmidevi9161870509, 2 months ago

difference between sequential statement and iterative statement​

Answers

Answered by Akil2090
3

Answer:

The selection structure tests a condition, then executes one sequence of statements instead of another, depending on whether the condition is true or false. ... The iteration structure executes a sequence of statements repeatedly as long as a condition holds true.

Answered by at689165
2

Answer:

Iterative Statement

  • The statement that keeps repeating themselves as long as a given condition is true are called Iterative Statements or Repetitive Statements. As soon as the condition becomes false, the loop terminates. These are also called Looping statements or simply loops. Every loop works with the help of a variable known as the Control variable.
  • In Python, there are two types of Iterative statements:

1. FOR Loop

2. While loop

Sequential statement :

  • Sequential statements define algorithms for the execution within a process or a subprogram. They belong to the conventional notions of sequential flows, control, conditionals, and Iteration in the high-level programming languages such as Pascal, C, or Ada. They execute in the order in which they appear in the program.

Similar questions