Computer Science, asked by mkaneesh4287, 11 months ago

Give an example of a loop which doesn't execute even once

Answers

Answered by heyheyhey
0

Answer:

let i = 0;

do {

 alert( i );

 i++;

} while (i < 3);

i hope i can get the right answer...

Answered by vivekmiyatra26
0

Explanation:

Explanation: With a do while loop the condition is not evaluated until the end of the loop. Because of that a do while loop will always execute at least once. A for-loop always makes sure the condition is true before running the program.Jun 13, 2019

Similar questions