Assume that integer i has already been declared and initialised to 0.
Clear selection
Last week, the "break" keyword was introduced. This week, it was highlighted again for using in loops. What does the "break" implementation do in a loop?
Clear selection
This week the "continue" keyword was introduced. What does the "continue" do within the loop?
Clear selection
Image 2
In most programs, we try to prevent our logic from creating infinite loops as it can impede the general flow of our code. During the implementation of the code above, will the loop iterate infinitely?