QUESTION IMAGE
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
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.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
C. To repeat something a fixed number of times