Computer Science, asked by kiran23220209, 3 months ago


Which of the following is an not an Iteration Loop:
a) if-else
b) while
c) do-while
d) for​

Answers

Answered by swatidhotre371
0

Answer:

3. A. List three rational numbers between -2 and - 1

B. Find 3 x =5

4. The cost of a flower

Explanation:

d for

Answered by bishaldasdibru
0

Answer :

(A) if-else

The iteration loop that is not an iteration loop is "if-else."

Explanation :

Out of the given options, "if-else" is not an iteration loop.

An iteration loop is a control structure used to repeat a block of code several times. It is used to execute the same code repeatedly until a specific condition is met.

"While" and "do-while" are examples of iteration loops in which a block of code is executed repeatedly as long as a condition is true. In "while" loop, the condition is tested before the code is executed, and in "do-while" loop, the code is executed first and then the condition is tested.

"For" loop is another example of an iteration loop in which a set number of iterations can be specified. It is used when the number of iterations is known beforehand.

On the other hand, "if-else" is a decision-making statement in which a block of code is executed based on the result of a condition. It is used to make decisions based on whether a condition is true or false.

In conclusion, iteration loops are used to execute a block of code repeatedly, while decision-making statements are used to make decisions based on conditions.

To know more about the concept please go through the links :

https://brainly.in/question/29697649

https://brainly.in/question/46295741

#SPJ3

Similar questions