Computer Science, asked by shivanand050, 1 month ago

which is best loop in computer science

Answers

Answered by badb05273
0

Answer:

In general, you should use a for loop when you know how many times the loop should run. If you want the loop to break based on a condition other than the number of times it runs, you should use a while loop.

Explanation:

please mark me as a brainlist

Answered by itsmerockingaarav
0

Answer:

I think for loop is the best in computer science cause you can specify all the conditions from the start of the loop

while loop you have to mention all the conditions in the loop

do while loop is the least best because you have to mention the computer to do something before the loop even starts

hope it helps MARK ME BRAINLIEST

Similar questions