Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

you need to write a program that has karel move 6 times and then put a …

Question

you need to write a program that has karel move 6 times and then put a ball. which control structure do you need to use? options: for loop, while loop, if statement, if/else statement, none of these

Explanation:

Brief Explanations

A for loop is used when the number of repetitions is known in advance. Here, Karel needs to move exactly 6 times, a fixed number of iterations. While loops are for conditional, unknown repetitions; if/if-else are for conditional branching, not repeated actions.

Answer:

For loop