Which situations are better suited to an indefinite (while) loop? Select 3 options.

writing a program that will average 20 numbers

allowing the user to enter their best friends names without saying how many friends they can have

writing a program to average numbers without requiring the user to count the numbers

writing a program to average the temperatures for the last 30 days

having the user guess a number and keep guessing till they get it rig

Respuesta :

Answer:

2,3 and 5

Explanation:

1 and 4 have a predetermined number of times they need to be ran, 20 and 30, which means a for loop is best for them. whereas the others will run for an unknown number of times.

Answer:

  • allowing the user to enter their best friends names without saying how many friends they can have

  • writing a program to average numbers without requiring the user to count the numbers

  • having the user guess a number and keep guessing till they get it right

Explanation: Correct on Edg  2020/2021.