Computer Science, asked by thahseenhallaj4459, 10 months ago

for loop is better than while loop.agree or dis agree​

Answers

Answered by madhav4381
0

I agree as in the for loop we don't have to initialise and also it's value get added again to it.....

Hope it helped........

Pls mark as brainleist.... ...

Answered by JoyitaPurkait
0

Answer:

In computer science, a for-loop is a control flow statement for specifying iteration, which allows code to be executed repeatedly. Various keywords are used to specify this statement: descendants of ALGOL use "for", while descendants of Fortran use "do". There are other possibilities, for example COBOL which uses "PERFORM VARYING".

In most computer programming languages, a while loop is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition. The while loop can be thought of as a repeating if statement

Explanation:

Hope it helps you!!!

Similar questions