Welcome to Westonci.ca, the ultimate question and answer platform. Get expert answers to your questions quickly and accurately. Get immediate and reliable answers to your questions from a community of experienced professionals on our platform. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.

You are creating a game in which an enemy sprite performs a certain action
five times and then stops. Which type of loop would be the best choice for
this function?
A. An infinite loop
B. A while loop
C. A repeat loop
D. A forever loop


Sagot :

The repeat loop is the best type of loop to be used in a game where the enemy sprite performs a certain action five times and then stops.

What is repeat loop?

In programming, the repeat loop is used when the programmer want to execute one or more statements repeatedly some number of times.

Hence, the repeat loop is the best type of loop to be used in a game where the enemy sprite performs a certain action five times and then stops.

Therefore, the Option C is correct.

Read more about repeat loop

brainly.com/question/7145214