Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question: 25 what is the purpose of using a for loop in code? to do som…

Question

question: 25 what is the purpose of using a for loop in code? to do something if a condition is true to do something while a condition is true to repeat something a fixed number of times to make programs run faster

Explanation:

Brief Explanations

A for - loop in programming is used to execute a block of code a specific number of times. The first option describes an if - statement, the second describes a while - loop, and a for - loop doesn't inherently make programs run faster.

Answer:

C. To repeat something a fixed number of times