for Loops - AP Computer Science A

Card 1 of 30

0
Didn't Know
Knew It
0
1 of 3029 left
Question

What is the primary purpose of a for loop in programming?

Tap to reveal answer

Answer

To iterate a block of code a specific number of times. Provides controlled repetition with a predetermined count.

← Didn't Know|Knew It →