Which of the following statements skip the execution of the remaining part of the loop? (a)break (b) continue (c) both 1 and 2 (d) None of these
Answers
Answer:
option b
The continue statement is used inside loops. When a continue statement is encountered inside a loop, control jumps to the beginning of the loop for next iteration, skipping the execution of statements inside the body of loop for the current iteration.
Explanation:
Mark me as brainliest please
Answer:
The right answer is a) break.
Explanation:
The break statement is used to skip the execution of the remaining part of the loop. When a loop is executing and a specific condition is called and a break statement is in the condition, it breaks out of the loop and the remaining part of the loop is not executed.
The continue statement allows you to jump from one iteration to the next. When the continue statement is called, the iteration was on is skipped and the next part of the code is executed.
What is a do - while loop?
https://brainly.in/question/45456232
Similar Problem
https://brainly.in/question/51432318
#SPJ2