write the difference between for next loop and do loop
Answers
Answered by
0
Answer:
next loop : it is a program which is used to repeat a sequence of statements for a specific number of occurrences.
Explanation:
do loop: A high-level programming language structure that repeats instructions based on the results of a comparison.
Answered by
0
Every time the loop is run, do-while tests the loop condition, so it keeps running as long even as the test condition is true. We'll loop continuously from the value of the star to an overall gain.
Difference between for next loop and do loop :
Do loop :
- We use the Do-Loop construction when we do not even know how many iterations will be performed.
- Every time the loop is run, do-while tests the loop condition, so it keeps running as long even as the test condition is true.
For-Next loop :
- To programmatically read a block of statements until the statement executes a certain number of times, as indicated by the start, finish, and step parameters.
- To employ this strategy, we'll need to have a counter. We'll loop continuously from the value of the star to an overall gain.
Similar questions