what are the different ways to generate a loop in basic programming ?
Answers
Answered by
0
Answer:
- for loop:- for(conditions) {what to do in loop} loop.
- while loop :- while{what to do in the loop} condition;loop.
- do while loop:- do{what to do in loop} while(condition) ;loop.
Answered by
1
Explanation:
☆for loop:- for(conditions) {what to do in loop} loop.
☆while loop :- while{what to do in the loop} ☆condition;loop.
☆do while loop:- do{what to do in loop}
☆ while(condition) ;loop.
Similar questions